Problem exam
User JcYong
Submission Time 2024-06-18 15:58:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:10: error: expected ‘;’ before ‘if’
5 | cin >> x
| ^
| ;
6 | if(x == 1){
| ~~
exam.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else{
| ^~~~
exam.cpp:10:11: error: expected ‘;’ before ‘cin’
10 | cin >> a
| ^
| ;
11 | cin >> b
| ~~~