记录详情

Compile Error

/in/foo.c: In function 'Is_Leap':
/in/foo.c:6:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if(x%4==0)
    ^
/in/foo.c: In function 'main':
/in/foo.c:38:60: error: 'year' undeclared (first use in this function)
     total+=count(year2,month2)-count(year1,month1)+Is_Leap(year);
                                                            ^~~~
/in/foo.c:38:60: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: In function 'count':
/in/foo.c:29:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P2844 5-6 过去了多少天
语言
C
递交时间
2023-11-28 16:57:45
评测时间
2023-11-28 16:57:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes