| Problem | wrongreverse |
|---|---|
| User | estkn |
| Submission Time | 2026-02-02 16:31:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:19:23: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>’ and ‘const char [2]’)
19 | cout << res[a] >> " ";
| ^~ ~~~
| |
| const char [2]
In file included from /usr/include/c++/9/string:56,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from wrongreverse.cpp:1:
/usr/include/c++/9/bits/basic_string.tcc:1466:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&