记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:9:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    9 |   if(i%400==0||i%4==0&&i%100!=0)
      |                ~~~~~~^~~~~~~~~~
foo.cc:20:8: error: 'ify1' was not declared in this scope; did you mean 'y1'?
   20 |   else(ify1%400==0||y1%4==0&&y1%100!=0)sum+=29;
      |        ^~~~
      |        y1
[Hydro](https://hydro.ac)提供评测服务

信息

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