Problem knightmoves
User Yizhou
Submission Time 2024-06-12 18:23:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knightmoves.cpp: In function β€˜int main()’:
knightmoves.cpp:22:18: error: expression cannot be used as a function
22 | int y=f.second();
| ^
knightmoves.cpp:30:21: error: expected primary-expression before β€˜)’ token
30 | if((nx>=0&&nx<n&&)&&(ny>=0&&ny<n)&&b[nx][ny]!='x'&&d[nx][ny]==-1){
| ^