Problem exam
User ZeeYuen
Submission Time 2024-02-16 15:28:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:6: error: ‘x’ was not declared in this scope
5 | if (x) = 1;
| ^
exam.cpp:5:9: error: expected primary-expression before ‘=’ token
5 | if (x) = 1;
| ^
exam.cpp:10:6: error: ‘x’ was not declared in this scope
10 | if (x) = 2;
| ^
exam.cpp:10:9: error: expected primary-expression before ‘=’ token
10 | if (x) = 2;
| ^