Problem 3nplus1II
User FIips
Submission Time 2025-02-10 09:50:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:13:3: error: expected ‘}’ before ‘else’
13 | else n = n / 2;
| ^~~~
3nplus1II.cpp:12:18: note: to match this ‘{’
12 | if(n % 2 != 0) {n = 3 * n + 1;
| ^