/in/foo.c:1:1: warning: data definition has no type or storage class
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'
weight = float(input("请输入包裹重量(单位千克):"))
^~~~~
/in/foo.c:3:3: error: invalid preprocessing directive #�
# 计算快递费用
^
/in/foo.c:4:28: error: stray '#' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:30: error: stray '\351' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:31: error: stray '\246' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:32: error: stray '\226' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:33: error: stray '\351' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:34: error: stray '\207' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:35: error: stray '\215' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:36: error: stray '\344' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:37: error: stray '\273' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:38: error: stray '\267' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:39: error: stray '\346' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:40: error: stray '\240' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:4:41: error: stray '\274' in program
first_weight_price = 15.0 # 首重价格
^
/in/foo.c:5:33: error: stray '#' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:35: error: stray '\347' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:36: error: stray '\273' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:37: error: stray '\255' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:38: error: stray '\351' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:39: error: stray '\207' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:40: error: stray '\215' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:41: error: stray '\344' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:42: error: stray '\273' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:43: error: stray '\267' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:44: error: stray '\346' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:45: error: stray '\240' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:5:46: error: stray '\274' in program
additional_weight_price = 10.0 # 续重价格
^
/in/foo.c:6:29: error: stray '#' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:31: error: stray '\346' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:32: error: stray '\212' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:33: error: stray '\230' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:34: error: stray '\346' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:35: error: stray '\211' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:36: error: stray '\243' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:37: error: stray '\351' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:38: error: stray '\230' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:39: error: stray '\210' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:40: error: stray '\345' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:41: error: stray '\200' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:6:42: error: stray '\274' in program
discount_threshold = 100.0 # 折扣阈值
^
/in/foo.c:7:22: error: stray '#' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:24: error: stray '\346' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:25: error: stray '\212' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:26: error: stray '\230' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:27: error: stray '\346' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:28: error: stray '\211' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:29: error: stray '\243' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:30: error: stray '\347' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:31: error: stray '\216' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:7:32: error: stray '\207' in program
discount_rate = 0.9 # 折扣率
^
/in/foo.c:9:3: error: invalid preprocessing directive #�
# 计算费用
^
/in/foo.c:15:3: error: invalid preprocessing directive #�
# 判断是否享受折扣
^
/in/foo.c:19:3: error: invalid preprocessing directive #�
# 输出结果,保留两位小数
^