Problem | 3nplus1 |
---|---|
User | fanqie |
Submission Time | 2024-06-27 09:01:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int32_t main()’:
3nplus1.cpp:8:14: error: lvalue required as left operand of assignment
8 | if (n % 2 = 0){
| ^
3nplus1.cpp:12:14: error: lvalue required as left operand of assignment
12 | if (n % 2 = 1){
| ^
3nplus1.cpp:13:7: error: unable to find numeric literal operator ‘operator""n’
13 | n = 3n + 1;
| ^~
3nplus1.cpp:14:11: error: unable to find numeric literal operator ‘operator""n’
14 | cout << 3n+1;
| ^~