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_37014886_31625.cpp: In function 'int main()':
0_0_37014886_31625.cpp:12:25: error: invalid types 'double [65][20][double]' for array subscript
         scanf("%lf",&f[i][j]);
                         ^
0_0_37014886_31625.cpp:13:20: error: invalid types 'double [65][20][double]' for array subscript
         sum=sum+f[i][j];
                    ^
0_0_37014886_31625.cpp:16:9: error: invalid types 'double [65][double]' for array subscript
      a[i]=sum/m;
         ^
0_0_37014886_31625.cpp:21:16: error: invalid types 'double [65][20][double]' for array subscript
        sum+=f[j][i];
                ^
0_0_37014886_31625.cpp:23:7: error: invalid types 'double [20][double]' for array subscript
    b[i]=sum/n;
       ^
0_0_37014886_31625.cpp:28:14: error: invalid types 'double [65][20][double]' for array subscript
        if(f[j][i]>b[i]) c++;
              ^
0_0_37014886_31625.cpp:28:22: error: invalid types 'double [20][double]' for array subscript
        if(f[j][i]>b[i]) c++;
                      ^
0_0_37014886_31625.cpp:35:34: error: invalid types 'double [65][double]' for array subscript
    if(i==n-1) printf("%.2f\n",a[i]);
                                  ^
0_0_37014886_31625.cpp:36:33: error: invalid types 'double [65][double]' for array subscript
    else       printf("%.2f ",a[i]);
                                 ^
0_0_37014886_31625.cpp:39:34: error: invalid types 'double [20][double]' for array subscript
    if(i==m-1) printf("%.2f\n",b[i]);
                                  ^
0_0_37014886_31625.cpp:40:33: error: invalid types 'double [20][double]' for array subscript
    else       printf("%.2f ",b[i]);
                                 ^


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-23 00:51:26, Gzip enabled