Problem 3nplus1
User Debdan01
Submission Time 2025-08-21 16:15:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:5: error: expected ‘(’ before ‘}’ token
9 | if }(n%2==1){
| ^
| (
3nplus1.cpp:9:14: error: expected ‘;’ before ‘{’ token
9 | if }(n%2==1){
| ^
| ;
3nplus1.cpp:12:2: error: ‘else’ without a previous ‘if’
12 | else if (n%2==0){
| ^~~~
3nplus1.cpp: At global scope:
3nplus1.cpp:17:2: error: expected unqualified-id before ‘return’
17 | return 0;}
| ^~~~~~
3nplus1.cpp:17:11: error: expected declaration before ‘}’ token
17 | return 0;}
| ^