/tmp/compiler_ecj_hh0a/src: 在函数‘int main()’中:
/tmp/compiler_ecj_hh0a/src:11:18: 错误:‘int[int]’用作数组下标类型无效
11 | a[x][y]=i;
| ^
/tmp/compiler_ecj_hh0a/src:15:9: 错误:‘int[int]’用作数组下标类型无效
15 | if(a[px][py]==0) cout<<-1;
| ^
/tmp/compiler_ecj_hh0a/src:16:20: 错误:‘int[int]’用作数组下标类型无效
16 | else cout<<a[px][py];
|
what?
请 DALAO 看看呗