Problem | exam |
---|---|
User | christal |
Submission Time | 2023-12-04 16:02:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:6:11: error: expected ‘;’ before ‘if’
6 | cin >> x
| ^
| ;
7 | if(x==1){
| ~~
exam.cpp:9:4: error: ‘else’ without a previous ‘if’
9 | }else if(x==2){
| ^~~~
exam.cpp:10:16: error: expected ‘;’ before ‘cout’
10 | cin >> a >> b
| ^
| ;
11 | cout << a*b;
| ~~~~