Problem 3nplus1
User Water
Submission Time 2023-06-26 10:05:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:13: error: expected ‘;’ before ‘cout’
8 | n = 3*n+1
| ^
| ;
9 | cout << n << " ";
| ~~~~
3nplus1.cpp:11:10: error: expected primary-expression before ‘=’ token
11 | if (n%==0) {
| ^
3nplus1.cpp:12:11: error: expected ‘;’ before ‘cout’
12 | n = n/2
| ^
| ;
13 | cout << n << " ";
| ~~~~