Problem exam
User jopoddb
Submission Time 2026-06-22 15:36:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:10: error: expected ‘;’ before ‘if’
7 | cin >> x
| ^
| ;
8 | if (x = 1) {
| ~~
exam.cpp:11:2: error: ‘else’ without a previous ‘if’
11 | else {
| ^~~~
exam.cpp:14:16: error: expected ‘;’ before ‘cout’
14 | cin >> a >> b
| ^
| ;
15 | cout << a*b
| ~~~~