F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                                                                               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 02:43:30, Gzip enabled