/in/foo.cc: In function 'void f(int, int)':
/in/foo.cc:6:8: error: invalid types 'int[int]' for array subscript
a[x][y]=0;
^
/in/foo.cc:7:13: error: invalid types 'int[int]' for array subscript
if(a[x+1][y])f(x+1,y);
^
/in/foo.cc:8:13: error: invalid types 'int[int]' for array subscript
if(a[x-1][y])f(x-1,y);
^
/in/foo.cc:9:13: error: invalid types 'int[int]' for array subscript
if(a[x][y+1])f(x,y+1);
^
/in/foo.cc:10:13: error: invalid types 'int[int]' for array subscript
if(a[x][y-1])f(x,y-1);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:18: error: invalid types 'int[int]' for array subscript
cin>>a[i][j];
^
/in/foo.cc:21:16: error: invalid types 'int[int]' for array subscript
if(a[i][j]==1)
^