记录详情

Wrong Answer

foo.cc: In function 'bool ily(int)':
foo.cc:4:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    4 |  return n%4==0&&n%100||n%400==0;
      |         ~~~~~~^~~~~~~
foo.cc: In function 'int md(int, int, int)':
foo.cc:14:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   14 |   else if(i<=7&&i%2||i>=8&&!i%2)sum+=31;
      |           ~~~~^~~~~
foo.cc: In function 'int main()':
foo.cc:27:9: warning: 'n' is used uninitialized in this function [-Wuninitialized]
   27 |  sum+=md(n,m,d2);
      |       ~~^~~~~~~~
foo.cc:27:9: warning: 'm' is used uninitialized in this function [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 6413, expect 6717. 4ms 384.0 KiB
#2 Wrong Answer Read 18081, expect 18415. 2ms 384.0 KiB
#3 Wrong Answer Read 42918, expect 43252. 1ms 384.0 KiB
#4 Wrong Answer Read 79442, expect 79776. 2ms 384.0 KiB
#5 Wrong Answer Read 4781, expect 5114. 2ms 384.0 KiB

信息

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