Problem exam
User macaroniyw81
Submission Time 2026-06-22 15:29:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:5: error: expected ‘(’ before ‘x’
5 | if x = 2;
| ^
| (
exam.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else if x = 1;
| ^~~~
exam.cpp:9:10: error: expected ‘(’ before ‘x’
9 | else if x = 1;
| ^
| (