Problem | 3nplus1 |
---|---|
User | mingging1748 |
Submission Time | 2024-04-06 11:06:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:12: error: expected ‘;’ before ‘if’
9 | cout << n
| ^
| ;
10 | if (n % 2 == 0) {
| ~~
3nplus1.cpp:13:3: error: ‘else’ without a previous ‘if’
13 | else {
| ^~~~
3nplus1.cpp:18:1: error: expected ‘}’ at end of input
18 | }
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^