Problem exam
User christal
Submission Time 2023-12-04 15:55:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:6: error: ‘x’ was not declared in this scope
6 | if (x==1) {
| ^
exam.cpp:7:23: error: expected ‘;’ before ‘}’ token
7 | cout << "Hello World"
| ^
| ;
8 | }
| ~
exam.cpp:10:15: error: expected ‘;’ before ‘cout’
10 | cin >> a >> b
| ^
| ;
11 | cout << a*b;
| ~~~~