记录详情

Compile Error

/in/foo.c:1:1: warning: data definition has no type or storage class
    1 | a = int(input()) #获取年份
      | ^
/in/foo.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
/in/foo.c:1:5: error: expected expression before 'int'
    1 | a = int(input()) #获取年份
      |     ^~~
/in/foo.c:1:18: error: stray '#' in program
    1 | a = int(input()) #获取年份
      |                  ^
/in/foo.c:2:59: error: stray '#' in program
    2 | b = int((a % 4 == 0 and a % 100 != 0) or a % 400 == 0)+28 #计算二月长度
      |                                                           ^

信息

递交者
类型
递交
题目
P1001 判断月份
语言
C
递交时间
2026-01-06 13:57:49
评测时间
2026-01-06 13:57:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes