Problem 3nplus1
User macaroniyw81
Submission Time 2026-06-22 16:51:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:28: error: invalid operands of types ‘int’ and ‘const char [2]’ to binary ‘operator<<’
9 | cout << n /= 2 << " ";
| ~ ^~ ~~~
| | |
| int const char [2]
3nplus1.cpp:12:33: error: invalid operands of types ‘int’ and ‘const char [2]’ to binary ‘operator<<’
12 | cout << n = 3*n + 1 << " ";
| ~~~~~~~ ^~ ~~~
| | |
| int const char [2]