foo.cc: In function 'int main()':
foo.cc:8:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
8 | if(i%4==0&&i%100!=0||i%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:13:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
13 | if(i%4==0&&i%100!=0||i%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:21:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
21 | case 2:tot1+=28+(y%4==0&&y%100!=0||y%400==0);break;
| ~~~~~~^~~~~~~~~~
foo.cc:28:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
28 | case 2:tot2+=28+(y2%4==0&&y2%100!=0||y2%400==0);break;
| ~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务