Problem exam
User ZeeYuen
Submission Time 2024-02-16 15:27:50
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 = 1;
| ^
| (
exam.cpp:10:5: error: expected ‘(’ before ‘x’
10 | if x = 2;
| ^
| (
exam.cpp:11:7: error: redeclaration of ‘int a’
11 | int a = 90;
| ^
exam.cpp:6:7: note: ‘int a’ previously declared here
6 | int a = 2;
| ^
exam.cpp:12:7: error: redeclaration of ‘int b’
12 | int b = 10;
| ^
exam.cpp:7:7: note: ‘int b’ previously declared here
7 | int b = 3;
| ^