foo.cc: In function 'int main()':
foo.cc:10:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
10 | if((i%100==0&&i&400==0)||i%4==0) sum++;
| ~~~^~~
foo.cc:15:24: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
15 | if(((i%100==0&&i&400==0)||i%4==0)&&i==2) sum+=num[0];
| ~~~^~~
foo.cc:25:23: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
25 | if(((i%100==0&&i&400==0)||i%4==0)&&i==2) sum+=num[0];
| ~~~^~~
foo.cc:30:23: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
30 | if(((m%100==0&&m&400==0)||m%4==0)&&m==2) sum+=(num[0]-d+d2);
| ~~~^~~
[Hydro](https://hydro.ac)提供评测服务