Problem | 3nplus1 |
---|---|
User | ZacharyTan2010 |
Submission Time | 2024-02-05 16:10:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:9: error: expected ‘;’ before ‘if’
8 | cout<<x
| ^
| ;
9 | if(x%2==1){x=3*x+1;}
| ~~
3nplus1.cpp:10:2: error: ‘else’ without a previous ‘if’
10 | else{x=x/2;}
| ^~~~