/ Vijos /

记录详情

Compile Error

foo.c: In function 'caculatedate':
foo.c:17:15: error: 'intdaysinmonth' undeclared (first use in this function); did you mean 'daysinmonth'?
   17 |         if(dd>intdaysinmonth[mm-1])
      |               ^~~~~~~~~~~~~~
      |               daysinmonth
foo.c:17:15: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:13: warning: variable 'daysinmonth' set but not used [-Wunused-but-set-variable]
   12 |         int daysinmonth[]={31,28,31,30,31,30,31,31,30,31,30,31};
      |             ^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1211 生日日数
语言
C
递交时间
2023-07-30 12:38:51
评测时间
2023-07-30 12:38:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes