Problem 3nplus1
User mincraft
Submission Time 2026-02-14 09:55:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:3: error: expected ‘}’ before ‘else’
10 | else
| ^~~~
3nplus1.cpp:6:11: note: to match this ‘{’
6 | if (n>=1){
| ^
3nplus1.cpp:12:5: error: unable to find numeric literal operator ‘operator""n’
12 | n=3n+1;
| ^~
3nplus1.cpp: At global scope:
3nplus1.cpp:14:1: error: expected declaration before ‘}’ token
14 | }
| ^