Problem | knightmoves |
---|---|
User | hwy |
Submission Time | 2023-06-20 16:52:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
knightmoves.cpp: In function ‘bool is_valid(int, int)’:
knightmoves.cpp:12:33: error: ‘n’ was not declared in this scope
12 | if (x <= 0 || y <= 0 || x > n || y > n) {
| ^
knightmoves.cpp: In function ‘int min_jumps()’:
knightmoves.cpp:34:25: error: ‘p’ was not declared in this scope
34 | if (curr == p) {
| ^