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:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   50 |  days += passDays(year, month, 1);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -5, expect 5. 2ms 384.0 KiB
#2 Wrong Answer Read 0, expect 1. 2ms 384.0 KiB

信息

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