Problem 3nplus1
User qizao
Submission Time 2023-11-07 13:25:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:35: error: break statement not within loop or switch
9 | if (n == 1) {cout << n << endl ; break}
| ^~~~~
3nplus1.cpp:9:40: error: expected ‘;’ before ‘}’ token
9 | if (n == 1) {cout << n << endl ; break}
| ^
| ;
3nplus1.cpp:13:10: error: unable to find numeric literal operator ‘operator""n’
13 | n = 3n +1;
| ^~
3nplus1.cpp:18:1: error: expected ‘}’ at end of input
18 | }
| ^
3nplus1.cpp:6:1: note: to match this ‘{’
6 | {
| ^