Problem 3nplus1
User pointlessapeirogon
Submission Time 2024-01-29 11:45:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:18:2: error: ‘else’ without a previous ‘if’
18 | else
| ^~~~
3nplus1.cpp:21:2: error: expected ‘while’ before ‘(’ token
21 | }(while n >= 1);
| ^
3nplus1.cpp:21:3: error: expected primary-expression before ‘while’
21 | }(while n >= 1);
| ^~~~~
3nplus1.cpp:21:3: error: expected ‘)’ before ‘while’
21 | }(while n >= 1);
| ~^~~~~
| )
3nplus1.cpp:21:3: error: expected ‘;’ before ‘while’
21 | }(while n >= 1);
| ^~~~~
| ;
3nplus1.cpp:21:9: error: expected ‘(’ before ‘n’
21 | }(while n >= 1);
| ^
| (