记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:14: warning: format '%lf' expects argument of type 'double *', but argument 2 has type 'float *' [-Wformat=]
     scanf("%lf %lf",&n,&m);
            ~~^      ~~
            %f
foo.c:8:18: warning: format '%lf' expects argument of type 'double *', but argument 3 has type 'float *' [-Wformat=]
     scanf("%lf %lf",&n,&m);
                ~~^     ~~
                %f
foo.c: In function 'score':
foo.c:14:8: error: size of array 's' has non-integer type
  float s[n],i,max,min;
        ^
foo.c:20:19: warning: format '%lf' expects argument of type 'double *', but argument 2 has type 'float *' [-Wformat=]
          scanf("%lf",&a[h][l]);
                 ~~^  ~~~~~~~~
                 %f
foo.c: In function 'main':
foo.c:8:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lf %lf",&n,&m);
     ^~~~~~~~~~~~~~~~~~~~~~
foo.c: In function 'score':
foo.c:20:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
          scanf("%lf",&a[h][l]);
          ^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1016 作文比赛
语言
C
递交时间
2021-11-18 21:37:18
评测时间
2021-11-18 21:37:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes