记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'def'
    1 | def is_triangle(a,b,c);
      | ^~~
/in/foo.c:1:1: warning: parameter names (without types) in function declaration
/in/foo.c:2:1: error: unknown type name 'resout'
    2 | resout a+b>c and a+c>b and b+c>a
      | ^~~~~~
/in/foo.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
    2 | resout a+b>c and a+c>b and b+c>a
      |         ^
/in/foo.c:4:1: warning: data definition has no type or storage class
    4 | input_data = input(a,b,c)
      | ^~~~~~~~~~
/in/foo.c:4:1: warning: type defaults to 'int' in declaration of 'input_data' [-Wimplicit-int]
/in/foo.c:4:14: warning: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    4 | input_data = input(a,b,c)
      |              ^~~~~
/in/foo.c:4:20: error: 'a' undeclared here (not in a function)
    4 | input_data = input(a,b,c)
      |                    ^
/in/foo.c:4:22: error: 'b' undeclared here (not in a function)
    4 | input_data = input(a,b,c)
      |                      ^
/in/foo.c:4:24: error: 'c' undeclared here (not in a function)
    4 | input_data = input(a,b,c)
      |                        ^
/in/foo.c:5:1: error: expected ',' or ';' before 'sides'
    5 | sides=list(map(int,input_data.split(',')))
      | ^~~~~
/in/foo.c:7:7: error: expected declaration specifiers or '...' before string constant
    7 | print("输入不合法")
      |       ^~~~~~~~~~~~
/in/foo.c:10:1: warning: data definition has no type or storage class
   10 | perimeter = sum(sides)
      | ^~~~~~~~~
/in/foo.c:10:1: warning: type defaults to 'int' in declaration of 'perimeter' [-Wimplicit-int]
/in/foo.c:10:13: warning: implicit declaration of function 'sum' [-Wimplicit-function-declaration]
   10 | perimeter = sum(sides)
      |             ^~~
/in/foo.c:10:17: error: 'sides' undeclared here (not in a function)
   10 | perimeter = sum(sides)
      |                 ^~~~~
/in/foo.c:11:1: error: expected ',' or ';' before 'print'
   11 | print(preimeter)
      | ^~~~~

信息

递交者
类型
递交
比赛
2025-python-1-3
语言
C
递交时间
2025-03-30 14:25:01
评测时间
2025-03-30 14:25:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes