记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:20:34: warning: 'count4' may be used uninitialized [-Wmaybe-uninitialized]
   20 |         printf("%.2lf%%\n",count4/n*100);
      |                            ~~~~~~^~
foo.c:9:37: note: 'count4' was declared here
    9 |         double count1,count2,count3,count4;//四个年龄段
      |                                     ^~~~~~
foo.c:19:34: warning: 'count3' may be used uninitialized [-Wmaybe-uninitialized]
   19 |         printf("%.2lf%%\n",count3/n*100);
      |                            ~~~~~~^~
foo.c:9:30: note: 'count3' was declared here
    9 |         double count1,count2,count3,count4;//四个年龄段
      |                              ^~~~~~
foo.c:18:34: warning: 'count2' may be used uninitialized [-Wmaybe-uninitialized]
   18 |         printf("%.2lf%%\n",count2/n*100);
      |                            ~~~~~~^~
foo.c:9:23: note: 'count2' was declared here
    9 |         double count1,count2,count3,count4;//四个年龄段
      |                       ^~~~~~
foo.c:17:34: warning: 'count1' may be used uninitialized [-Wmaybe-uninitialized]
   17 |         printf("%.2lf%%\n",count1/n*100);
      |                            ~~~~~~^~
foo.c:9:16: note: 'count1' was declared here
    9 |         double count1,count2,count3,count4;//四个年龄段
      |                ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 36.00%, expect 10.00%. 1ms 200.0 KiB
#2 Wrong Answer Read 36.59%, expect 19.51%. 1ms 284.0 KiB
#3 Wrong Answer Read 40.00%, expect 20.00%. 1ms 284.0 KiB
#4 Accepted 1ms 284.0 KiB
#5 Accepted 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1060 统计不同年龄段患者的比例
比赛
2023 程序设计与竞赛(作业7:最初的综合)
语言
C
递交时间
2023-11-11 09:09:29
评测时间
2023-11-11 09:09:29
评测机
分数
40
总耗时
9ms
峰值内存
284.0 KiB