记录详情

Wrong Answer

foo.cc: In function 'int runnian(int)':
foo.cc:5:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    5 |  if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
      |      ~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:43:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   43 |  if (y1 < y2)
      |     ^
foo.cc:49:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   49 |  if (y1 < y2)
      |     ^
foo.cc: In function 'int movedays(int, int, int)':
foo.cc:28:1: warning: control reaches end of non-void function [-Wreturn-type]
   28 | }
      | ^
foo.cc:15:12: warning: 'moveday' is used uninitialized in this function [-Wuninitialized]
   15 |    moveday += 31;
      |    ~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 6209, expect 6717. 1ms 384.0 KiB
#2 Wrong Answer Read 17897, expect 18415. 2ms 384.0 KiB
#3 Wrong Answer Read 42734, expect 43252. 4ms 384.0 KiB
#4 Wrong Answer Read 79258, expect 79776. 1ms 384.0 KiB
#5 Wrong Answer Read 4748, expect 5114. 5ms 384.0 KiB

信息

递交者
类型
递交
题目
5-6 过去了多少天
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 21:41:20
评测时间
2022-07-28 21:41:20
评测机
分数
0
总耗时
15ms
峰值内存
384.0 KiB