Problem exam
User Zubair
Submission Time 2026-06-22 15:45:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:20: error: expected ‘;’ before ‘if’
6 | int n; cin >> n
| ^
| ;
7 |
8 | if (n == 1) {
| ~~
exam.cpp:11:2: error: ‘else’ without a previous ‘if’
11 | else if (n == 2) {
| ^~~~