foo.cc: In function 'int main()':
foo.cc:17:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
17 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:24:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
24 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:31:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
31 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:38:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
38 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:45:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
45 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:52:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
52 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:59:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
59 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:66:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
66 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:73:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
73 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:80:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
80 | if(y%4==0&&y%100!=0||y%400==0)
| ~~~~~~^~~~~~~~~~
foo.cc:85:14: error: expected '}' at end of input
85 | return 0;
| ^
foo.cc:4:1: note: to match this '{'
4 | {
| ^
[Hydro](https://hydro.ac)提供评测服务