Problem exam
User GWC2724
Submission Time 2023-11-14 10:19:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:4:7: error: ‘x’ was not declared in this scope
4 | cin>>x;
| ^
exam.cpp:5:5: error: expected ‘(’ before ‘x’
5 | if x == 1:
| ^
| (
exam.cpp:7:2: error: ‘else’ without a previous ‘if’
7 | else if x == 2:
| ^~~~
exam.cpp:7:10: error: expected ‘(’ before ‘x’
7 | else if x == 2:
| ^
| (
exam.cpp:9:9: error: ‘A’ was not declared in this scope
9 | cout<<A*B;
| ^
exam.cpp:9:11: error: ‘B’ was not declared in this scope
9 | cout<<A*B;
| ^