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 -1, expect 5. 4ms 384.0 KiB
#2 Wrong Answer Read 3, expect 1. 4ms 384.0 KiB

信息

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