Problem exam
User zixin
Submission Time 2023-11-10 10:28:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:2: error: expected initializer before ‘cin’
5 | cin >>x;
| ^~~
exam.cpp:6:6: error: ‘x’ was not declared in this scope
6 | if (x == 1){
| ^
exam.cpp:9:6: error: ‘x’ was not declared in this scope
9 | if (x == 2){
| ^
exam.cpp:12:7: error: expected ‘;’ before ‘cout’
12 | A*=B
| ^
| ;
13 | cout<<A;
| ~~~~