Problem trivialexam
User artemis
Submission Time 2023-11-13 21:59:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trivialexam.cpp:10:3: error: expected unqualified-id before ‘else’
10 | }else if(n==3){
| ^~~~
trivialexam.cpp:12:3: error: expected unqualified-id before ‘else’
12 | }else if(n==4){
| ^~~~
trivialexam.cpp:14:3: error: expected unqualified-id before ‘else’
14 | }else if(n==5){
| ^~~~
trivialexam.cpp:16:3: error: expected unqualified-id before ‘else’
16 | }else if(n==6){
| ^~~~
trivialexam.cpp:18:3: error: expected unqualified-id before ‘else’
18 | }else if(n==7){
| ^~~~
trivialexam.cpp:20:3: error: expected unqualified-id before ‘else’
20 | }else if(n==8){
| ^~~~
trivialexam.cpp:22:3: error: expected unqualified-id before ‘else’
22 | }else if(n==9){
| ^~~~
trivialexam.cpp:24:3: error: expected unqualified-id before ‘else’
24 | }else if(n==10){
| ^~~~
trivialexam.cpp:27:1: error: expected declaration before ‘}’ token