/ 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 << 0 << '\n';
      |     ^~~~
      |     std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:146,
                 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 <bits/stdc++.h>

int main()
{
    cout << 0 << '\n';
}

Information

Submit By
Type
Submission
Problem
P1124 Even Number
Contest
LU IUJPC : Sylhet Division 2024 Replay Contest
Language
C++17 (G++ 13.2.0)
Submit At
2024-12-10 09:06:12
Judged At
2024-12-10 09:06:12
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes