/in/foo.cc: In function 'int leapyear(int)':
/in/foo.cc:6:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
6 | if (x % 4 == 0 && x % 100 != 0 || x % 400 == 0)
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/foo.cc: In function 'int month(int, int)':
/in/foo.cc:71:12: warning: left operand of comma operator has no effect [-Wunused-value]
71 | return e, g;
| ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:136:13: warning: left operand of comma operator has no effect [-Wunused-value]
136 | e, g = month(e, g);
| ^
/in/foo.cc:142:13: warning: left operand of comma operator has no effect [-Wunused-value]
142 | e, g = month(e, g);
| ^