foo.c: In function 'main':
foo.c:7:28: error: expected expression before '%' token
7 | if(year%4==0&&year%%100!=0||year%400==0){
| ^
foo.c:8:15: warning: too many arguments for format [-Wformat-extra-args]
8 | scanf("d",&month);
| ^~~
foo.c:9:40: error: 'mounth' undeclared (first use in this function); did you mean 'month'?
9 | if(month==1||month==3||mounth==5||month==7||month==8||month==10||month==12){
| ^~~~~~
| month
foo.c:9:40: note: each undeclared identifier is reported only once for each function it appears in
foo.c: At top level:
foo.c:16:1: error: expected identifier or '(' before 'else'
16 | else{
| ^~~~
foo.c:24:1: error: expected identifier or '(' before '}' token
24 | }
| ^
[Hydro](https://hydro.ac)提供评测服务