foo.cc: In function 'int main()':
foo.cc:12:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
12 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:18:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
18 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:24:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
24 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:30:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
30 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:36:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
36 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:42:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
42 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:48:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
48 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:54:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
54 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:60:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
60 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:66:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
66 | if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:71:10: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
71 | cout << s;
| ^
[Hydro](https://hydro.ac)提供评测服务