Problem exam
User kiwiapricot
Submission Time 2024-04-06 15:10:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:4:13: error: expected unqualified-id before numeric constant
4 | int x = 1, 2
| ^
exam.cpp:8:2: error: ‘else’ without a previous ‘if’
8 | else{
| ^~~~
exam.cpp:9:2: error: ‘sum’ was not declared in this scope
9 | sum = A*B
| ^~~
exam.cpp:9:8: error: ‘A’ was not declared in this scope
9 | sum = A*B
| ^
exam.cpp:9:10: error: ‘B’ was not declared in this scope
9 | sum = A*B
| ^