记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:9:39: error: expected ')' before 'lyear'
   if((year % 4 ==0 && year % 100 != 0)lyear % 400 == 0)
                                       ^~~~~
/in/foo.c:10:13: error: expected ';' before ':' token
    days = 29:l
             ^
/in/foo.c:13:22: error: expected ')' before 'month'
   else if(month ==4l month == 6month==9lmonth ==11)
                      ^~~~~
/in/foo.c:13:31: error: invalid suffix "month" on integer constant
   else if(month ==4l month == 6month==9lmonth ==11)
                               ^~~~~~
/in/foo.c:13:39: error: invalid suffix "lmonth" on integer constant
   else if(month ==4l month == 6month==9lmonth ==11)
                                       ^~~~~~~
/in/foo.c:14:13: error: expected ';' before ':' token
    days = 30:
             ^
/in/foo.c:18:11: error: expected ';' before ':' token
   return 0:
           ^
/in/foo.c:19:2: error: expected declaration or statement at end of input
  }
  ^

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
泰院2401程序设计基础作业赛第一场(牛刀小试)
语言
C
递交时间
2024-10-21 18:13:37
评测时间
2024-10-21 18:13:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes