记录详情

Wrong Answer

foo.cc: In function 'int year(int)':
foo.cc:9:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    9 |  if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0) i = 1;
      |      ~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.cc: In function 'int fn(int, int, int, int)':
foo.cc:51:7: warning: statement has no effect [-Wunused-value]
   51 |  for (small; small <= big; small++)
      |       ^~~~~
foo.cc: In function 'int main()':
foo.cc:73:8: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   73 |  system("pause");
      |  ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2, expect 3. 10ms 640.0 KiB
#2 Wrong Answer Read 32, expect 33. 9ms 656.0 KiB
#3 Accepted 7ms 768.0 KiB
#4 Accepted 8ms 636.0 KiB
#5 Wrong Answer Read 1001, expect 1000. 4ms 768.0 KiB

信息

递交者
类型
递交
题目
P1004 OO1-4 日期类Date
语言
C++
递交时间
2022-04-29 18:17:50
评测时间
2022-04-29 18:17:50
评测机
分数
40
总耗时
39ms
峰值内存
768.0 KiB