Problem 3nplus1
User JJYZZ
Submission Time 2024-06-21 09:54:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:1: error: ‘else’ without a previous ‘if’
11 | else (n % 2 ==0){
| ^~~~
3nplus1.cpp:11:17: error: expected ‘;’ before ‘{’ token
11 | else (n % 2 ==0){
| ^
| ;
3nplus1.cpp:15:1: error: ‘else’ without a previous ‘if’
15 | else if (n % 2 != 0){
| ^~~~