Problem | 3nplus1 |
---|---|
User | NoynYT |
Submission Time | 2023-04-28 18:10:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:10: error: expected ‘;’ before ‘cout’
11 | n=n/2
| ^
| ;
12 | cout<<n<<endl;
| ~~~~
3nplus1.cpp:14:12: error: expected ‘;’ before ‘}’ token
14 | n=3*n+1
| ^
| ;
15 | }
| ~
3nplus1.cpp:16:20: error: expected ‘;’ before ‘}’ token
16 | if (n==1){g=true}
| ^
| ;