foo.cc: In function 'int WeekdayOfTheFirstDay(int, int)':
foo.cc:11:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
11 | if(i%400==0 || i%4==0 && i%100!=0)
| ~~~~~~~^~~~~~~~~~~
foo.cc:31:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
31 | if(year%400==0 || year%4==0 && year%100!=0)
| ~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'void daying(int, int)':
foo.cc:54:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
54 | if(year%400==0||year%4==0&&year%100!=0)
| ~~~~~~~~~^~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务