0_0_33543130_26362.cpp: In function 'int main()':
0_0_33543130_26362.cpp:44:66: error: invalid types 'int[int]' for array subscript
for(int i=1; i<=n; ++i) for(int j=1; j<=n; ++j) scanf("%d", a[i]+j), b[n-i+1][n-j+1]=a[i][j];
^
0_0_33543130_26362.cpp:44:79: error: invalid types 'int[int]' for array subscript
for(int i=1; i<=n; ++i) for(int j=1; j<=n; ++j) scanf("%d", a[i]+j), b[n-i+1][n-j+1]=a[i][j];
^
0_0_33543130_26362.cpp:44:91: error: invalid types 'int[int]' for array subscript
for(int i=1; i<=n; ++i) for(int j=1; j<=n; ++j) scanf("%d", a[i]+j), b[n-i+1][n-j+1]=a[i][j];
^
0_0_33543130_26362.cpp:45:15: error: invalid conversion from 'int' to 'int (*)[403]' [-fpermissive]
work(a, f, g), work(b, ff, gg);
^
0_0_33543130_26362.cpp:8:6: note: initializing argument 1 of 'void work(int (*)[403], int (*)[403][403], int (*)[403])'
void work(int a[][N], int f[][N][N], int g[][N]){
^
0_0_33543130_26362.cpp:45:32: error: invalid conversion from 'int' to 'int (*)[403]' [-fpermissive]
work(a, f, g), work(b, ff, gg);
^
0_0_33543130_26362.cpp:8:6: note: initializing argument 1 of 'void work(int (*)[403], int (*)[403][403], int (*)[403])'
void work(int a[][N], int f[][N][N], int g[][N]){
^
0_0_33543130_26362.cpp:49:79: error: invalid types 'int[int]' for array subscript
Merge(l[j], f[i][j], Getf(i, j)), gl[i][j]=((ll)g[i][j]+Getg(i, j)+P-p[a[i][j]])%P;
^
0_0_33543130_26362.cpp:54:79: error: invalid types 'int[int]' for array subscript
Merge(r[j], f[i][j], Getf(i, j)), gr[i][j]=((ll)g[i][j]+Getg(i, j)+P-p[a[i][j]])%P;
^
|