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_37061084_27485.cpp:1:783: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdio.h>in: Invalid argument
 #include<stdio.h>int main(){ int m,n,i,j,b; double s,a[51][6]; bool flag=true; while(scanf("%d %d",&n,&m)!=EOF) {  b=0;  if(n<=0||m<=0||n>50||m>5) break;  for(i=0;i<=n-1;i++)  {      for(j=0;j<=m-1;j++)   {    scanf("%lf",&a[i][j]);   }  }  for(i=0;i<=n-1;i++)  {   s=0.0;   for(j=0;j<=m-1;j++)   {    s=s+a[i][j];   }   a[i][5]=s/m;//一个学生平均成绩   }  for (j = 0;j <= m-1;j++)  {   s = 0.0;   for (i = 0;i <= n-1;i++)   {    s = s + a[i][j];   }   a[50][j] = s / n;//科目平均成绩   }  for(i=0;i<=n-1;i++)  {   flag=true;   for(j=0;j<=m-1;j++)   {    if(a[i][j]<a[50][j]) flag=0;   }   if(flag) b++;   }  for(i=0;i<=n-1;i++)  {   printf("%.2lf ",a[i][5]);  }  printf("\n");  for(j=0;j<=m-1;j++){   printf("%.2lf ",a[50][j]);  }  printf("\n");  printf("%d\n",b);  }   return 0; }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
compilation terminated.


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-16 05:18:23, Gzip enabled