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)提供评测服务