Problem exam
User Anonymous35V
Submission Time 2023-11-08 11:12:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int32_t main()’:
exam.cpp:6:8: error: expected ‘(’ before ‘x’
6 | if x = 2;
| ^
| (
exam.cpp:8:7: error: expected initializer before ‘int’
8 | int b;
| ^~~
exam.cpp:9:9: error: ‘a’ was not declared in this scope
9 | cin >> a >> b;
| ^
exam.cpp:9:14: error: ‘b’ was not declared in this scope
9 | cin >> a >> b;
| ^
exam.cpp:11:6: error: expected ‘(’ before ‘x’
11 | if x = 1,
| ^
| (