Problem exam
User eqweqweqeeeeeeeeeee
Submission Time 2023-04-17 15:01:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:8:9: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout << "Hello World" << endl;
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from exam.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
exam.cpp:8:34: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
8 | cout << "Hello World" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex: