Problem exam
User blob
Submission Time 2023-11-08 10:43:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:2: error: expected ‘,’ or ‘;’ before ‘if’
7 | if (x==1){
| ^~
exam.cpp:10:2: error: ‘else’ without a previous ‘if’
10 | else{
| ^~~~
exam.cpp:11:14: error: expected ‘;’ before string constant
11 | cout << a*b "ab/n";
| ^~~~~~~
| ;
exam.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
exam.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^