Problem | knightmoves |
---|---|
User | Yizhou |
Submission Time | 2024-06-12 18:22:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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){
| ^
knightmoves.cpp:32:24: error: expected ‘;’ before ‘}’ token
32 | d[nx][ny]=d[x][y]+1
| ^
| ;
33 | }
| ~