Submission #1175761

#TimeUsernameProblemLanguageResultExecution timeMemory
1175761jakrinMecho (IOI09_mecho)C++20
Compilation error
0 ms0 KiB
#include<iostream> int main(){ cout << '-1' << endl; }

Compilation message (stderr)

mecho.cpp:4:11: warning: multi-character character constant [-Wmultichar]
    4 |   cout << '-1' << endl;
      |           ^~~~
mecho.cpp: In function 'int main()':
mecho.cpp:4:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   cout << '-1' << endl;
      |   ^~~~
      |   std::cout
In file included from mecho.cpp:1:
/usr/include/c++/11/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;          /// Linked to standard output
      |                  ^~~~
mecho.cpp:4:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |   cout << '-1' << endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/11/iostream:39,
                 from mecho.cpp:1:
/usr/include/c++/11/ostream:684:5: note: 'std::endl' declared here
  684 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~