Problem exam
User zien
Submission Time 2026-06-22 16:26:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:11: error: expected initializer before ‘==’ token
5 | if (int x == 1) {
| ^~
exam.cpp:5:10: error: expected ‘)’ before ‘==’ token
5 | if (int x == 1) {
| ~ ^~~
| )
exam.cpp:9:5: error: ‘x’ was not declared in this scope
9 | if (x == 2) {
| ^
exam.cpp:15:5: error: ‘x’ was not declared in this scope
15 | if (x == 2) {
| ^