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_37191479_789.cpp: In function 'int main()':
0_0_37191479_789.cpp:11:29: error: invalid types 'double [n][m][double]' for array subscript
             scanf("%lf",&a[i][j]);
                             ^
0_0_37191479_789.cpp:16:22: error: invalid types 'double [n][m][double]' for array subscript
             ave1+=a[i][j];
                      ^
0_0_37191479_789.cpp:18:14: error: invalid types 'double [n][double]' for array subscript
         arr[i]=ave1/m;//人的平均成绩
              ^
0_0_37191479_789.cpp:23:22: error: invalid types 'double [n][m][double]' for array subscript
             ave2+=a[i][j];
                      ^
0_0_37191479_789.cpp:25:14: error: invalid types 'double [m][double]' for array subscript
         brr[j]=ave2/n;//课程的平均成绩
              ^
0_0_37191479_789.cpp:31:19: error: invalid types 'double [n][m][double]' for array subscript
             if(a[i][j]>=brr[j]) count++;
                   ^
0_0_37191479_789.cpp:31:30: error: invalid types 'double [m][double]' for array subscript
             if(a[i][j]>=brr[j]) count++;
                              ^
0_0_37191479_789.cpp:35:40: error: invalid types 'double [n][double]' for array subscript
         if(i!=n-1) printf("%.2f ",arr[i]);
                                        ^
0_0_37191479_789.cpp:36:35: error: invalid types 'double [n][double]' for array subscript
         else printf("%.2f\n",arr[i]);
                                   ^
0_0_37191479_789.cpp:39:40: error: invalid types 'double [m][double]' for array subscript
         if(j!=m-1) printf("%.2f ",brr[j]);
                                        ^
0_0_37191479_789.cpp:40:35: error: invalid types 'double [m][double]' for array subscript
         else printf("%.2f\n",brr[j]);
                                   ^


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-18 10:35:56, Gzip enabled