Problem 3nplus1
User sharelletqx
Submission Time 2026-02-28 10:15:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:11: error: lvalue required as left operand of assignment
8 | if (n%2=0){
| ^
3nplus1.cpp:9:17: error: no match for ‘operator/=’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
9 | cout<<'\n'<<n/=2;
| ~~~~~~~~~~~~~^~~
3nplus1.cpp:12:17: error: no match for ‘operator*=’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
12 | cout<<'\n'<<n*=3+1;
| ~~~~~~~~~~~~~^~~~~