Problem 3nplus1
User asbx
Submission Time 2023-11-08 10:22:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:11: error: expected ‘;’ before ‘n’
11 | cout<<n
| ^
| ;
12 | n=n/2
| ~
3nplus1.cpp:14:17: error: expected ‘;’ before ‘}’ token
14 | else n=(3*n)+1
| ^
| ;
15 | }
| ~
3nplus1.cpp:16:9: error: expected ‘;’ before ‘}’ token
16 | cout<<1
| ^
| ;
17 | }
| ~