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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:2: error: expected initializer before ‘int’
6 | int a, b;
| ^~~
exam.cpp:7:9: error: ‘a’ was not declared in this scope
7 | cin >> a >> b;
| ^
exam.cpp:7:14: error: ‘b’ was not declared in this scope
7 | cin >> a >> b;
| ^
exam.cpp:8:6: error: ‘x’ was not declared in this scope
8 | if (x = 2) {
| ^