Problem 3nplus1
User rasquait
Submission Time 2025-12-02 13:21:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:12:12: error: expected ‘;’ before ‘if’
12 | cout << x
| ^
| ;
13 | if (x % 2 == 0) x /= 2;
| ~~
3nplus1.cpp:14:3: error: ‘else’ without a previous ‘if’
14 | else {x *= 3; x++;}
| ^~~~