Submission #232945

#TimeUsernameProblemLanguageResultExecution timeMemory
232945kristopher23Mountains (NOI20_mountains)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> int main(){ cout << 0 << endl; }

Compilation message (stderr)

Mountains.cpp: In function 'int main()':
Mountains.cpp:4:3: error: 'cout' was not declared in this scope
   cout << 0 << endl;
   ^~~~
Mountains.cpp:4:3: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:75:0,
                 from Mountains.cpp:1:
/usr/include/c++/7/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
Mountains.cpp:4:16: error: 'endl' was not declared in this scope
   cout << 0 << endl;
                ^~~~
Mountains.cpp:4:16: note: suggested alternative:
In file included from /usr/include/c++/7/istream:39:0,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from Mountains.cpp:1:
/usr/include/c++/7/ostream:590:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^~~~