Wrong Answer

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

信息

递交者
类型
递交
题目
P1074 计算星期几
语言
C++
递交时间
2022-07-14 12:53:48
评测时间
2022-07-14 12:53:48
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB