Problem 3nplus1
User xiaotong
Submission Time 2023-11-08 10:47:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:8: error: expected initializer before ‘<=’ token
5 | int n <= 10000;
| ^~
3nplus1.cpp:6:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | while (n != 1){
| ^
| yn
3nplus1.cpp:9:15: error: unable to find numeric literal operator ‘operator""n’
9 | } else {n = 3n+1}]
| ^~
3nplus1.cpp:9:20: error: expected primary-expression before ‘]’ token
9 | } else {n = 3n+1}]
| ^