记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:35:23: warning: 'd4' may be used uninitialized [-Wmaybe-uninitialized]
   35 |     printf("%.2lf",d4 * 100 / double(n));
      |                    ~~~^~~~~
foo.cc:7:21: note: 'd4' was declared here
    7 |     double d1,d2,d3,d4;
      |                     ^~
foo.cc:33:23: warning: 'd3' may be used uninitialized [-Wmaybe-uninitialized]
   33 |     printf("%.2lf",d3 * 100 / double(n));
      |                    ~~~^~~~~
foo.cc:7:18: note: 'd3' was declared here
    7 |     double d1,d2,d3,d4;
      |                  ^~
foo.cc:31:23: warning: 'd2' may be used uninitialized [-Wmaybe-uninitialized]
   31 |     printf("%.2lf",d2 * 100 / double(n));
      |                    ~~~^~~~~
foo.cc:7:15: note: 'd2' was declared here
    7 |     double d1,d2,d3,d4;
      |               ^~
foo.cc:29:23: warning: 'd1' may be used uninitialized [-Wmaybe-uninitialized]
   29 |     printf("%.2lf",d1 * 100 / double(n));
      |                    ~~~^~~~~
foo.cc:7:12: note: 'd1' was declared here
    7 |     double d1,d2,d3,d4;
      |            ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 3ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 284.0 KiB
#5 Accepted 4ms 328.0 KiB

信息

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