foo.cc: In function 'int main()':
foo.cc:23:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
23 | if(i%4==0&&i%100!=0||i%400==0) c+=366;
| ~~~~~~^~~~~~~~~~
foo.cc:26:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
26 | if(sy%4==0&&sy%100!=0||sy%406==0) m[2]=29;
| ~~~~~~~^~~~~~~~~~~
foo.cc:29:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
29 | if(ey%4==0&&ey%100!=0||ey%400==0) m[2]=29;
| ~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务