/ Vijos /

记录详情

Compile Error

foo.c:1:1: error: unknown type name 'var'
    1 | var
      | ^~~
foo.c:3:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    3 | s:array[1..20] of string;
      |  ^
foo.c:3:9: error: too many decimal points in number
    3 | s:array[1..20] of string;
      |         ^~~~~
foo.c:5:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    5 | map:array[1..20,1..20] of longint;
      |    ^
foo.c:5:11: error: too many decimal points in number
    5 | map:array[1..20,1..20] of longint;
      |           ^~~~~
foo.c:5:17: error: too many decimal points in number
    5 | map:array[1..20,1..20] of longint;
      |                 ^~~~~
foo.c:7:1: warning: data definition has no type or storage class
    7 | best,n,i:longint;
      | ^~~~
foo.c:7:1: warning: type defaults to 'int' in declaration of 'best' [-Wimplicit-int]
foo.c:7:6: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
    7 | best,n,i:longint;
      |      ^
foo.c:7:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    7 | best,n,i:longint;
      |         ^
foo.c:9:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    9 | used:array[1..20] of longint;
      |     ^
foo.c:9:12: error: too many decimal points in number
    9 | used:array[1..20] of longint;
      |            ^~~~~
foo.c:11:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   11 | ch:char;
      |   ^
foo.c:13:1: error: unknown type name 'function'; did you mean 'union'?
   13 | function min(x,y:longint):longint;
      | ^~~~~~~~
      | union
foo.c:13:17: error: expected ')' before ':' token
   13 | function min(x,y:longint):longint;
      |                 ^
      |                 )
foo.c:17:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
   17 | if xbest then best:=len;
      | ^~
foo.c:19:1: error: expected identifier or '(' before 'for'
   19 | for i:=1 to n do
      | ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1311 单词接龙
语言
C
递交时间
2023-05-24 20:05:20
评测时间
2023-05-24 20:05:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes