Problem 3nplus1
User 583116UB
Submission Time 2024-04-13 11:50:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:11: error: expected ‘;’ before ‘}’ token
8 | cout<<n
| ^
| ;
9 | }else if(n&2==1){
| ~
3nplus1.cpp:10:6: error: unable to find numeric literal operator ‘operator""n’
10 | n=3n+1;
| ^~
3nplus1.cpp:14:13: error: expected ‘;’ before ‘}’ token
14 | return 0
| ^
| ;
15 | }
| ~