Problem exam
User Hbst2013
Submission Time 2026-04-10 16:17:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:4:28: error: expected ‘;’ before ‘if’
4 | int choice; cin>>choice
| ^
| ;
5 | if (choice==1)
| ~~
exam.cpp:7:2: error: ‘else’ without a previous ‘if’
7 | else if (choice==2)
| ^~~~
exam.cpp:8:15: error: ‘a’ was not declared in this scope
8 | int a; cin>>a;
| ^