Problem 3nplus1
User yihai
Submission Time 2026-01-21 17:22:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:5: error: unable to find numeric literal operator ‘operator""n’
10 | n=3n+1;
| ^~
3nplus1.cpp:19:11: error: expected ‘;’ before ‘}’ token
19 | cout<<n
| ^
| ;
20 | }
| ~