Wrong Answer

foo.cc: In function 'int main()':
foo.cc:39:13: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   39 |  printf("%.1f",s1/c1);
      |          ~~~^  ~~~~~
      |             |    |
      |             |    int
      |             double
      |          %.1d
foo.cc:41:13: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   41 |  printf("%.1f",s1/c0);
      |          ~~~^  ~~~~~
      |             |    |
      |             |    int
      |             double
      |          %.1d
foo.cc:43:14: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   43 |   printf("%.1f",sz/n);
      |           ~~~^  ~~~~
      |              |    |
      |              |    int
      |              double
      |           %.1d
foo.cc:21:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   21 |  {  scanf("%d %s %d %f",&s[i].num,s[i].name,&s[i].sex,&s[i].score);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0.0, expect 94.0. 6ms 384.0 KiB

信息

递交者
类型
递交
题目
P1150 结构体-学生信息处理2
语言
C++
递交时间
2022-03-31 16:33:20
评测时间
2022-03-31 16:33:20
评测机
分数
0
总耗时
6ms
峰值内存
384.0 KiB