Problem exam
User Adam
Submission Time 2024-06-18 11:10:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:8:22: error: expected ‘)’ before ‘;’ token
8 | cout<<"Hello World";
| ^
| )
exam.cpp:7:12: note: to match this ‘(’
7 | if(x >= 1)(
| ^
exam.cpp:9:2: error: expected primary-expression before ‘)’ token
9 | )
| ^
exam.cpp:12:10: error: ‘a’ was not declared in this scope
12 | cin >> a >> b;cout << a * b;
| ^
exam.cpp:12:15: error: ‘b’ was not declared in this scope
12 | cin >> a >> b;cout << a * b;
| ^
exam.cpp:13:2: error: expected primary-expression before ‘)’ token
13 | )
| ^