记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1003 滴滴出行
语言
C
递交时间
2023-05-19 16:33:36
评测时间
2023-05-19 16:33:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes