foo.cc: In function 'int main()':
foo.cc:11:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int m=1;m<month;m++)
^~~
foo.cc:13:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
cout<<sum<<endl;
^~~~
foo.cc: In function 'int isLeap(int)':
foo.cc:21:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(r400==0||r4==0&&r100!=0)
~~~~~^~~~~~~~~
foo.cc: In function 'int MonthDay(int, int)':
foo.cc:33:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(month==2)
^~
foo.cc:35:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
return day;
^~~~~~