记录详情

Compile Error

/in/foo.c: In function 'd':
/in/foo.c:10:6: error: 'i' undeclared (first use in this function)
  for(i=0;i<month-1;i++)
      ^
/in/foo.c:10:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:5: warning: 'main' is normally a non-static function [-Wmain]
 int main()
     ^~~~
/in/foo.c:22:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:8:6: warning: variable 'days' set but not used [-Wunused-but-set-variable]
  int days[]={31,y(year)?29:28,31,30,31,30,31,31,30,31,30,31};
      ^~~~
At top level:
/in/foo.c:15:5: warning: 'main' defined but not used [-Wunused-function]
 int main()
     ^~~~

信息

递交者
类型
递交
题目
A1-4 分支结构练习:今年过去了多少天
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-20 01:50:53
评测时间
2024-08-20 01:50:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes