记录详情

Compile Error

/in/foo.c:1:1: warning: data definition has no type or storage class
    1 | weight = float(input())
      | ^~~~~~
/in/foo.c:1:1: warning: type defaults to 'int' in declaration of 'weight' [-Wimplicit-int]
/in/foo.c:1:10: error: expected expression before 'float'
    1 | weight = float(input())
      |          ^~~~~
/in/foo.c:3:19: error: stray '#' in program
    3 |     total_kg = 1  # 首重范围,按1千克计算
      |                   ^
/in/foo.c:12:23: error: stray '#' in program
   12 |     express_fee = 15  # 首重费用
      |                       ^

信息

递交者
类型
自测
语言
C
递交时间
2025-12-20 23:08:44
评测时间
2025-12-20 23:08:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes