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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:8: error: expected ‘(’ before ‘x’
6 | if x = 2;
| ^
| (
exam.cpp:7:13: error: ‘b’ was not declared in this scope
7 | int a; b;
| ^
exam.cpp:9:7: error: ‘else’ without a previous ‘if’
9 | else if x = 1,
| ^~~~
exam.cpp:9:15: error: expected ‘(’ before ‘x’
9 | else if x = 1,
| ^
| (