Wrong Answer

foo.cc: In function 'int main()':
foo.cc:23:15: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized]
   23 |         printf("%.2f",r);
      |         ~~~~~~^~~~~~~~~~
foo.cc:5:21: note: 'r' was declared here
    5 |         float n1,n2,r;
      |                     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -395948890270447..., expect 61. 4ms 412.0 KiB
#2 Wrong Answer Read -nan, expect 60. 4ms 332.0 KiB
#3 Wrong Answer Read -423152816668178..., expect 366. 4ms 412.0 KiB
#4 Wrong Answer Read 28309929984.00, expect 365. 3ms 412.0 KiB
#5 Wrong Answer Read 0.00, expect 41. 4ms 352.0 KiB

信息

递交者
类型
递交
题目
P1025 计算某日期的天数***
语言
C++
递交时间
2023-12-17 20:19:28
评测时间
2023-12-17 20:19:28
评测机
分数
0
总耗时
21ms
峰值内存
412.0 KiB