Problem exam
User ZacharyTan2010
Submission Time 2024-02-05 16:26:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:11: error: expected ‘;’ before ‘if’
5 | cin>>x
| ^
| ;
6 | if(x==1){cout<<"Hello World";}
| ~~
exam.cpp:7:5: error: ‘else’ without a previous ‘if’
7 | else{cin>>a>>b;c=a*b;cout<<c;}}
| ^~~~