Problem exam
User poppav78
Submission Time 2025-01-20 17:09:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:9:29: error: expected ‘;’ before ‘}’ token
9 | std::cout << "Hello World"
| ^
| ;
10 | }
| ~
exam.cpp: At global scope:
exam.cpp:27:7: error: ‘cout’ in namespace ‘std’ does not name a type
27 | std::cout << a *b;
| ^~~~
In file included 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:28:1: error: expected declaration before ‘}’ token
28 | }
| ^