foo.cc: In function 'int main()':
foo.cc:12:13: warning: unused variable 'month' [-Wunused-variable]
int year,month,d,m;
^~~~~
foo.cc:12:19: warning: unused variable 'd' [-Wunused-variable]
int year,month,d,m;
^
foo.cc: In function 'int printMonth(int, int)':
foo.cc:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
foo.cc: In function 'int IsLeapYear(int)':
foo.cc:38:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(year%400==0||year%4==0&&year%100!=0)
~~~~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务