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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:23: error: expected ‘)’ before ‘;’ token
7 | cout <<"Hello World";
| ^
| )
exam.cpp:6:12: note: to match this ‘(’
6 | if(x >= 1)(
| ^
exam.cpp:8:2: error: expected primary-expression before ‘)’ token
8 | )
| ^
exam.cpp:12:14: error: ‘b’ was not declared in this scope
12 | cout << (a+b) << '\n'; //9
| ^
exam.cpp:14:2: error: expected primary-expression before ‘)’ token
14 | )
| ^