Problem 3nplus1
User oilershub
Submission Time 2026-02-28 09:07:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:5: error: expected ‘;’ before ‘n’
6 | cin n;
| ^~
| ;
3nplus1.cpp:9:13: error: expected ‘;’ before ‘cout’
9 | n = n / 2
| ^
| ;
10 | cout n;
| ~~~~
3nplus1.cpp:13:17: error: expected ‘;’ before ‘cout’
13 | n = 3 * n + 1
| ^
| ;
14 | cout n;
| ~~~~