Problem exam
User JunWei
Submission Time 2023-08-05 22:13:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:9: error: ‘qn_number’ was not declared in this scope
7 | cin >> qn_number;
| ^~~~~~~~~
exam.cpp:8:2: error: ‘else’ without a previous ‘if’
8 | else if (qn_number == 1) {
| ^~~~
exam.cpp:18:11: error: expected ‘;’ before ‘}’ token
18 | return 1
| ^
| ;
19 | }
| ~