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.
|