/in/foo.cc: In function 'bool leap(int)':
/in/foo.cc:22:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return ( y % 400 == 0 or y % 4 == 0 and y % 100 != 0 );
~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'bool beyond(const int*)':
/in/foo.cc:45:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
or ymd[0] == 2001 and ymd[1] > 11
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:46:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
or ymd[0] == 2001 and ymd[1] == 11 and ymd[2] > 4);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'bool win(const int*)':
/in/foo.cc:59:67: warning: the address of 'ymd1' will always evaluate as 'true' [-Waddress]
rec[ ymd1[0] - 1900 ][ ymd1[1] - 1 ][ ymd1[2] - 1 ] = ymd1 ? 2 : 1;
^
/in/foo.cc:60:67: warning: the address of 'ymd2' will always evaluate as 'true' [-Waddress]
rec[ ymd2[0] - 1900 ][ ymd2[1] - 1 ][ ymd2[2] - 1 ] = ymd2 ? 2 : 1;
^