| Problem | 3nplus1 |
|---|---|
| User | Kyri |
| Submission Time | 2026-02-21 08:51:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:14:9: error: expected ‘;’ before ‘}’ token
14 | n=n/2
| ^
| ;
15 | }
| ~
3nplus1.cpp:16:2: error: ‘else’ without a previous ‘if’
16 | else if(n%2==1){
| ^~~~
3nplus1.cpp:17:10: error: expected ‘;’ before ‘}’ token
17 | n=n*3+1
| ^
| ;
18 | }
| ~
3nplus1.cpp: At global scope:
3nplus1.cpp:20:1: error: expected declaration before ‘}’ token
20 | }
| ^