Problem knightmoves
User j0ashhh
Submission Time 2026-02-20 16:58:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knightmoves.cpp: In function ‘int main()’:
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:34:21: error: invalid types ‘int[std::tuple_element<0, std::tuple<int, int> >::type {aka int}]’ for array subscript
34 | int dy = y + dy[y];
| ^
knightmoves.cpp:37:20: error: ‘d’ was not declared in this scope; did you mean ‘dy’?
37 | q.push(dx, dy, d+1);
| ^
| dy