Problem | 3nplus1 |
---|---|
User | Logout |
Submission Time | 2023-11-08 09:15:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:18: error: lvalue required as left operand of assignment
8 | if (input % 2 = 0){
| ^
3nplus1.cpp:9:3: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | n /= 2;
| ^
| yn
3nplus1.cpp:11:25: error: lvalue required as left operand of assignment
11 | } else if (input % 2 = 1){
| ^
3nplus1.cpp:12:3: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
12 | n = 3n + 1;
| ^
| yn
3nplus1.cpp:12:7: error: unable to find numeric literal operator ‘operator""n’
12 | n = 3n + 1;
| ^~