记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'def'
 def Heron(a, b, c):
 ^~~
/in/foo.c: In function 'Heron':
/in/foo.c:1:19: error: expected declaration specifiers before ':' token
 def Heron(a, b, c):
                   ^
/in/foo.c:1:5: warning: type of 'a' defaults to 'int' [-Wimplicit-int]
 def Heron(a, b, c):
     ^~~~~
/in/foo.c:1:5: warning: type of 'b' defaults to 'int' [-Wimplicit-int]
/in/foo.c:1:5: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
/in/foo.c:14:1: warning: control reaches end of non-void function [-Wreturn-type]
 print(Heron(x,y,z)+Heron(x,r,s)+Heron(y,r,t)+Heron(z,s,t))
 ^~~~~

信息

递交者
类型
递交
题目
计算椎体表面积
语言
C
递交时间
2019-04-14 21:48:42
评测时间
2019-04-14 21:48:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes