Problem knightmoves
User PlayVoltz
Submission Time 2023-09-01 11:25:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knightmoves.cpp: In function ‘int knight(int, int, int, int)’:
knightmoves.cpp:25:4: error: ‘nc’ was not declared in this scope; did you mean ‘n’?
25 | nc = (y+move.first)*n + x+move.second;
| ^~
| n