foo.c: In function 'main':
foo.c:11:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
11 | if(n%4==0&&n%100!=0||n%100==0&&n%400==0)
| ~~~~~~^~~~~~~~~~
foo.c:43:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
43 | if(y==8)
| ^~
foo.c:45:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
45 | if(y==9)
| ^~
foo.c:6:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d %d %d",&n,&y,&r);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务