foo.cc: In function 'int main()':
foo.cc:9:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(year%400==0||(year%4==0&&year%100!=0));
  ^~
foo.cc:10:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  {
  ^
foo.cc:13:2: error: 'else' without a previous 'if'
  else
  ^~~~
foo.cc:18:1: error: 'else' without a previous 'if'
 else if(month==1||month==3||month==4||month==5||month==7||month==8||month==10||month==12);
 ^~~~
foo.cc:18:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 else if(month==1||month==3||month==4||month==5||month==7||month==8||month==10||month==12);
      ^~
foo.cc:19:1: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
 {
 ^
   
  
    [Hydro](https://hydro.ac)提供评测服务