记录详情

Compile Error

foo.c:1:1: error: unknown type name 'def'
    1 | def calculate_gift_amount(recharge_amount):
      | ^~~
foo.c: In function 'calculate_gift_amount':
foo.c:1:43: error: expected declaration specifiers before ':' token
    1 | def calculate_gift_amount(recharge_amount):
      |                                           ^
foo.c:1:5: warning: type of 'recharge_amount' defaults to 'int' [-Wimplicit-int]
    1 | def calculate_gift_amount(recharge_amount):
      |     ^~~~~~~~~~~~~~~~~~~~~
foo.c:7: warning: control reaches end of non-void function [-Wreturn-type]
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2023秋季必修习题3
语言
C
递交时间
2023-12-27 17:49:39
评测时间
2023-12-27 17:49:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes