Problem exam
User YII1719
Submission Time 2023-11-08 11:28:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:8:2: error: expected initializer before ‘if’
8 | if (x = 2) {
| ^~
exam.cpp:11:2: error: ‘else’ without a previous ‘if’
11 | else if (x = 1) {
| ^~~~
exam.cpp:11:11: error: ‘x’ was not declared in this scope
11 | else if (x = 1) {
| ^