Problem | 3nplus1 |
---|---|
User | claireau |
Submission Time | 2024-06-04 20:58:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:10: error: expected ‘;’ before ‘if’
11 | cout << n
| ^
| ;
12 |
13 | if (n%2==0){
| ~~
3nplus1.cpp:17:1: error: ‘else’ without a previous ‘if’
17 | else{
| ^~~~
3nplus1.cpp:19:6: error: expected ‘;’ before ‘n’
19 | cout n;
| ^~
| ;