Problem 3nplus1
User Ush
Submission Time 2023-11-10 10:27:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int32_t main()’:
3nplus1.cpp:11:19: error: expected ‘;’ before ‘if’
11 | cout << n << " "
| ^
| ;
12 |
13 | if (n % 2 == 0) {
| ~~
3nplus1.cpp:16:11: error: ‘else’ without a previous ‘if’
16 | } else {
| ^~~~
3nplus1.cpp:21:13: error: expected ‘;’ before ‘}’ token
21 | cout << "1"
| ^
| ;
22 |
23 | }
| ~