foo.cc: In function 'int zr(int*, int, int, int, int)':
foo.cc:5:18: error: invalid types 'int[int]' for array subscript
5 | if (a1[x][y]==1) return 0;
| ^
foo.cc: In function 'int zx(int*, int, int, int, int)':
foo.cc:23:18: error: invalid types 'int[int]' for array subscript
23 | if (a1[x][y]==1) return -1;
| ^
foo.cc:26:18: error: invalid types 'int[int]' for array subscript
26 | if (a1[x][y]==2) s++;
| ^
foo.cc: In function 'int main()':
foo.cc:49:18: error: cannot convert 'int (*)[m]' to 'int*'
49 | int s=zx(a,n-1,m-1,n,m)
| ^
| |
| int (*)[m]
foo.cc:21:12: note: initializing argument 1 of 'int zx(int*, int, int, int, int)'
21 | int zx(int a1[],int x,int y,int n,int m) {
| ~~~~^~~~
foo.cc:51:29: error: 't' was not declared in this scope
51 | cout << s << " " << t << endl;
| ^
[Hydro](https://hydro.ac)提供评测服务