Problem | exam |
---|---|
User | JunWei |
Submission Time | 2023-08-05 22:13:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:8:2: error: expected initializer before ‘cin’
8 | cin >> qn_number;
| ^~~
exam.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else if (qn_number == 1) {
| ^~~~
exam.cpp:9:11: error: ‘qn_number’ was not declared in this scope
9 | else if (qn_number == 1) {
| ^~~~~~~~~
exam.cpp:12:6: error: ‘qn_number’ was not declared in this scope
12 | if (qn_number == 2) {
| ^~~~~~~~~
exam.cpp:19:11: error: expected ‘;’ before ‘}’ token
19 | return 1
| ^
| ;
20 | }
| ~