Wrong Answer

foo.cc: In function 'int passDays(int, int, int)':
foo.cc:36:9: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   36 |  return sum;
      |         ^~~
foo.cc: In function 'int weekdayOfTheFirstDay(int, int)':
foo.cc:51:35: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   51 |  days += passDays(year, month, 1) - 1 ;//减掉1800年的1号
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 1ms 376.0 KiB
#2 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1075 打印月历
语言
C++
递交时间
2022-07-14 13:05:38
评测时间
2022-07-14 13:05:38
评测机
分数
0
总耗时
4ms
峰值内存
384.0 KiB