| Problem | 3nplus1 |
|---|---|
| User | ShaquilleOatmeal34 |
| Submission Time | 2026-10-11 11:47:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:4: error: expected ‘}’ before ‘else’
11 | else if( n = 3n + 1) }
| ^~~~
3nplus1.cpp:9:19: note: to match this ‘{’
9 | if( n % 2 == 0) {
| ^
3nplus1.cpp:11:17: error: unable to find numeric literal operator ‘operator""n’
11 | else if( n = 3n + 1) }
| ^~
3nplus1.cpp:11:25: error: expected primary-expression before ‘}’ token
11 | else if( n = 3n + 1) }
| ^
3nplus1.cpp: At global scope:
3nplus1.cpp:13:1: error: expected declaration before ‘}’ token
13 | }
| ^