foo.cc: In function 'int main()':
foo.cc:19:2: error: expected ',' or ';' before 'int'
int b[100][100];
^~~
foo.cc:24:4: error: 'b' was not declared in this scope
b[i][j]=JS(a, i,j); // !!
^
foo.cc:24:21: error: too few arguments to function 'int JS(int (*)[100], int, int, int)'
b[i][j]=JS(a, i,j); // !!
^
foo.cc:4:5: note: declared here
int JS(int a[100][100], int n, int i,int j)
^~
foo.cc:28:9: error: 'b' was not declared in this scope
cout<<b[i][j]<<" ";
^
foo.cc:18:6: warning: unused variable 'rowsum' [-Wunused-variable]
int rowsum[100]={0}, colsum[100]={0}
^~~~~~
foo.cc:18:23: warning: unused variable 'colsum' [-Wunused-variable]
int rowsum[100]={0}, colsum[100]={0}
^~~~~~
[Hydro](https://hydro.ac)提供评测服务