| Problem | knightmoves |
|---|---|
| User | j0ashhh |
| Submission Time | 2026-02-20 16:58:30 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knightmoves.cpp: In function ‘int main()’:
knightmoves.cpp:26:20: error: ‘class std::queue<std::tuple<int, int, int> >’ has no member named ‘top’; did you mean ‘pop’?
26 | auto [x,y,w] = q.top();
| ^~~
| pop
knightmoves.cpp:30:9: error: expected ‘;’ before ‘}’ token
30 | break
| ^
| ;
31 | }
| ~
knightmoves.cpp:33:21: error: invalid types ‘int[int]’ for array subscript
33 | int dx = x + dx[i];
| ^
knightmoves.cpp:37:20: error: ‘d’ was not declared in this scope; did you mean ‘dy’?
37 | q.push(dx, dy, d+1);
| ^
| dy
knightmoves.cpp:41:16: error: expected ‘;’ before ‘}’ token
41 | cout << answer
| ^
| ;
42 | }
| ~