/ SeriousOJ /

Record Detail

Compile Error

foo.cc: In function 'int main()':
foo.cc:4:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |    cout<<5<<endl;
      |    ^~~~
      |    std::cout
In file included from foo.cc:1:
/usr/include/c++/13/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
foo.cc:4:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |    cout<<5<<endl;
      |             ^~~~
      |             std::endl
In file included from /usr/include/c++/13/iostream:41:
/usr/include/c++/13/ostream:735:5: note: 'std::endl' declared here
  735 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~

Code

#include <iostream>

int main() {
   cout<<5<<endl;

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1048 History of TLE_Headquarters
Contest
TLE_Headquarters - round #1
Language
C++17 (G++ 13.2.0)
Submit At
2024-03-27 16:19:50
Judged At
2024-11-11 03:39:04
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes