Problem | 3nplus1 |
---|---|
User | blank |
Submission Time | 2025-01-20 17:50:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:13: error: lvalue required as left operand of assignment
6 | while (n%2=0){cout << n/2;}
| ^
3nplus1.cpp:7:2: error: ‘else’ without a previous ‘if’
7 | else {cout << 3*n+1;};
| ^~~~