Submission #1104086

#TimeUsernameProblemLanguageResultExecution timeMemory
1104086expert007Cloud Computing (CEOI18_clo)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" int main(){ cout << "hello world" << endl; }

Compilation message (stderr)

clo.cpp: In function 'int main()':
clo.cpp:3:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    3 |   cout << "hello world" << endl;
      |   ^~~~
      |   std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:75,
                 from clo.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;  /// Linked to standard output
      |                  ^~~~
clo.cpp:3:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    3 |   cout << "hello world" << endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/10/istream:39,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from clo.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
  681 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~