foo.cc: In function 'int MonthDay(int, int)':
foo.cc:32:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
foo.cc:35:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   return day;
   ^~~~~~
foo.cc: In function 'int GoDays(int, int, int)':
foo.cc:40:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int m=1; m<month; m++)
  ^~~
foo.cc:42:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   return sum;
   ^~~~~~
foo.cc: In function 'int main()':
foo.cc:38:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
  {int sum;
       ^~~
foo.cc: In function 'int GoDays(int, int, int)':
foo.cc:38:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]