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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:2: error: ‘cinx’ was not declared in this scope
7 | cinx<<A<<B
| ^~~~
exam.cpp:11:4: error: ‘else’ without a previous ‘if’
11 | }else if (x==2){
| ^~~~
exam.cpp:12:15: error: expected ‘;’ before ‘return’
12 | cout << A*B
| ^
| ;
13 | return 0;
| ~~~~~~
exam.cpp:14:1: error: expected ‘}’ at end of input
14 | }
| ^
exam.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^