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 -47.49, expect 61. 4ms 412.0 KiB
#2 Wrong Answer Read -0.00, expect 60. 5ms 416.0 KiB
#3 Wrong Answer Read -0.00, expect 366. 3ms 328.0 KiB
#4 Wrong Answer Read -0.00, expect 365. 4ms 516.0 KiB
#5 Wrong Answer Read 54102662840320.00, expect 41. 4ms 412.0 KiB

信息

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