Submission #232945

# Submission time Handle Problem Language Result Execution time Memory
232945 2020-05-18T18:05:35 Z kristopher23 Mountains (NOI20_mountains) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>

int main(){
  cout << 0 << endl;
}

Compilation message

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)
     ^~~~