Wrong Answer

foo.cc: In function 'int main()':
foo.cc:15:21: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
   15 |         if(m1==1)ans+=c-d1;
      |                  ~~~^~~~~~
foo.cc:8:31: note: 'ans' was declared here
    8 |         int y1,m1,d1,y2,m2,d2,ans;
      |                               ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 144, expect 6717. 4ms 328.0 KiB
#2 Wrong Answer Read 141, expect 18415. 3ms 412.0 KiB
#3 Wrong Answer Read 141, expect 43252. 4ms 412.0 KiB
#4 Wrong Answer Read 141, expect 79776. 4ms 412.0 KiB
#5 Wrong Answer Read 11, expect 5114. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1093 5-6 过去了多少天
比赛
2023.8高级班结业模拟测试
语言
C++
递交时间
2023-08-09 09:29:42
评测时间
2023-08-09 09:29:42
评测机
分数
0
总耗时
21ms
峰值内存
412.0 KiB