input/code.cpp: In function 'int main()':
input/code.cpp:14:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.length(); i++) {
^
input/code.cpp:21:17: error: cannot bind 'std::ostream {aka std::basic_ostream<char>}' lvalue to 'std::basic_ostream<char>&&'
cout << x << endl;
^
In file included from /usr/include/c++/4.9/iostream:39:0,
from input/code.cpp:2:
/usr/include/c++/4.9/ostream:602:5: note: initializing argument 1 of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = std::pair<const char, int>]'
operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
^