Problem 3nplus1II
User SMILE
Submission Time 2024-04-20 14:04:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:19:3: error: ‘else’ without a previous ‘if’
19 | }else if (n<1){
| ^~~~
3nplus1II.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
3nplus1II.cpp:10:10: note: to match this ‘{’
10 | if(n>=1){
| ^
3nplus1II.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
3nplus1II.cpp:5:11: note: to match this ‘{’
5 | int main(){
| ^