记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 08:58:00
评测时间
2022-08-15 08:58:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes