/ SeriousOJ /

Record Detail

Compile Error

foo.cc: In function 'int main()':
foo.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << "8";
      |     ^~~~
      |     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
      |                  ^~~~

Code

#include <iostream>

int main()
{
    cout << "8";
	return 0;
}

Information

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