Problem exam
User blob
Submission Time 2023-11-08 12:46:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:16: error: expected ‘;’ before ‘if’
6 | cin >> a >> b
| ^
| ;
7 | if (x==1) {
| ~~
exam.cpp:10:2: error: ‘else’ without a previous ‘if’
10 | else if (x==2) {
| ^~~~
exam.cpp:10:11: error: ‘x’ was not declared in this scope
10 | else if (x==2) {
| ^