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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:6: error: ‘x’ was not declared in this scope
6 | if (x==1){
| ^
exam.cpp:10:14: error: expected ‘;’ before string constant
10 | cout << a*b "/n"
| ^~~~~
| ;
exam.cpp:10:15: error: expected ‘}’ at end of input
10 | cout << a*b "/n"
| ^~~~
exam.cpp:9:6: note: to match this ‘{’
9 | else{
| ^
exam.cpp:10:15: error: expected ‘}’ at end of input
10 | cout << a*b "/n"
| ^~~~
exam.cpp:3:12: note: to match this ‘{’
3 | int main (){
| ^