Problem knightmoves
User theodorelee
Submission Time 2023-08-12 20:05:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knightmoves.cpp: In function ‘int bfs(std::pair<int, int>, int, std::pair<int, int>)’:
knightmoves.cpp:14:43: error: overloaded function with no contextual type information
14 | int new_x = node.first + move.first;
| ^~~~~
knightmoves.cpp:15:44: error: overloaded function with no contextual type information
15 | int new_y = node.second + move.second;
| ^~~~~~
knightmoves.cpp: At global scope:
knightmoves.cpp:40:5: error: expected unqualified-id before ‘return’
40 | return -1;
| ^~~~~~
knightmoves.cpp:41:1: error: expected declaration before ‘}’ token
41 | }
| ^