foo.c: In function 'main':
foo.c:4:15: warning: missing braces around initializer [-Wmissing-braces]
4 | int a[2][13]={0,31,28,31,30,31,30,31,31,30,31,30,31,0,31,29,31,30,31,30,31,31,30,31,30,31};
| ^
| { }{ }
foo.c:7:9: warning: zero-length gnu_printf format string [-Wformat-zero-length]
7 | printf("");
| ^~
foo.c:9:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
9 | leap=(year%4==0&&year%100!=0||year%400==0);
| ~~~~~~~~~^~~~~~~~~~~~~
foo.c:10:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for(i=1;i<month;i++)
| ^~~
foo.c:12:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
12 | printf("%d",day);
| ^~~~~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d %d %d",&year,&month,&day);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务