Problem 3nplus1
User ShaquilleOatmeal34
Submission Time 2026-10-11 11:48:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:4: error: expected ‘}’ before ‘else’
11 | else ( n = 3n + 1)
| ^~~~
3nplus1.cpp:9:19: note: to match this ‘{’
9 | if( n % 2 == 0) {
| ^
3nplus1.cpp:11:15: error: unable to find numeric literal operator ‘operator""n’
11 | else ( n = 3n + 1)
| ^~
3nplus1.cpp: At global scope:
3nplus1.cpp:14:1: error: expected declaration before ‘}’ token
14 | }
| ^