foo.c: In function ‘main’:
foo.c:51:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
51 | if(month>2)
| ^~
foo.c:53:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
53 | printf("%d", sum);
| ^~~~~~
foo.c:5:36: warning: variable ‘leap’ set but not used [-Wunused-but-set-variable]
5 | int year, month, day, sum, leap;
| ^~~~
foo.c:47:12: warning: ‘sum’ may be used uninitialized [-Wmaybe-uninitialized]
47 | sum=sum+day;
| ~~~^~~~~~~~
foo.c:5:31: note: ‘sum’ was declared here
5 | int year, month, day, sum, leap;
| ^~~