Problem | duckhunt12 |
---|---|
User | ForgottenDragon |
Submission Time | 2025-06-17 11:34:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckhunt12.cpp: In function ‘int main()’:
duckhunt12.cpp:21:41: error: lvalue required as left operand of assignment
21 | if (x == n && xdirection = +1) xdirection = -1;
| ^
duckhunt12.cpp:22:46: error: lvalue required as left operand of assignment
22 | else if (x == 1 && xdirection = -1) xdirection = +1;
| ^