/ Vijos /

记录详情

Compile Error

foo.cc:3:9: error: too many decimal points in number
    3 | a:array[1..64]of int64;
      |         ^~~~~
foo.cc:5:11: error: too many decimal points in number
    5 | b,c:array[1..64]of boolean;
      |           ^~~~~
foo.cc:13:10: error: too many decimal points in number
   13 | aa:array[0..64]of integer;
      |          ^~~~~
foo.cc:1:1: error: 'Var' does not name a type
    1 | Var
      | ^~~
foo.cc:5:1: error: 'b' does not name a type
    5 | b,c:array[1..64]of boolean;
      | ^
foo.cc:7:1: error: 'i' does not name a type
    7 | i,j,k,n,x,step,ss:longint;
      | ^
foo.cc:9:4: error: found ':' in nested-name-specifier, expected '::'
    9 | ans:int64;
      |    ^
      |    ::
foo.cc:9:1: error: 'ans' does not name a type
    9 | ans:int64;
      | ^~~
foo.cc:11:1: error: 'p' does not name a type
   11 | p,t:integer;
      | ^
foo.cc:13:3: error: found ':' in nested-name-specifier, expected '::'
   13 | aa:array[0..64]of integer;
      |   ^
      |   ::
foo.cc:13:1: error: 'aa' does not name a type
   13 | aa:array[0..64]of integer;
      | ^~
foo.cc:15:1: error: 'procedure' does not name a type
   15 | procedure out;
      | ^~~~~~~~~
foo.cc:17:1: error: 'var' does not name a type
   17 | var
      | ^~~
foo.cc:21:4: error: found ':' in nested-name-specifier, expected '::'
   21 | boo:boolean;
      |    ^
      |    ::
foo.cc:21:1: error: 'boo' does not name a type; did you mean 'bool'?
   21 | boo:boolean;
      | ^~~
      | bool
foo.cc:23:1: error: 'begin' does not name a type
   23 | begin
      | ^~~~~
foo.cc:27:1: error: 'boo' does not name a type; did you mean 'bool'?
   27 | boo:=true;
      | ^~~
      | bool
foo.cc:29:1: error: expected unqualified-id before 'for'
   29 | for i:=1 to p-1 do
      | ^~~
foo.cc:45:1: error: 'boo' does not name a type; did you mean 'bool'?
   45 | boo:=false;
      | ^~~
      | bool
foo.cc:47:1: error: 'end' does not name a type
   47 | end;
      | ^~~
foo.cc:49:1: error: 'end' does not name a type
   49 | end;
      | ^~~
foo.cc:51:1: error: 'procedure' does not name a type
   51 | procedure sort(kk,p:integer);
      | ^~~~~~~~~
foo.cc:53:1: error: 'var' does not name a type
   53 | var
      | ^~~
foo.cc:57:1: error: 'begin' does not name a type
   57 | begin
      | ^~~~~
foo.cc:69:5: error: expected constructor, destructor, or type conversion before '(' token
   69 | sort(kk+1,p);
      |     ^
foo.cc:71:1: error: 'end' does not name a type
   71 | end
      | ^~~
foo.cc:75:1: error: 'Function' does not name a type; did you mean 'union'?
   75 | Function ncf(x,y:longint):int64;
      | ^~~~~~~~
      | union
foo.cc:77:1: error: 'var' does not name a type
   77 | var
      | ^~~
foo.cc:81:1: error: 'begin' does not name a type
   81 | begin
      | ^~~~~
foo.cc:87:1: error: 'o' does not name a type
   87 | o:=1;
      | ^
foo.cc:89:1: error: expected unqualified-id before 'for'
   89 | for p:=1 to y do
      | ^~~
foo.cc:93:5: error: expected constructor, destructor, or type conversion before '(' token
   93 | exit(o);
      |     ^
foo.cc:95:1: error: 'end' does not name a type
   95 | end;
      | ^~~
foo.cc:97:1: error: 'Begin' does not name a type
   97 | Begin
      | ^~~~~
foo.cc:101:1: error: 'i' does not name a type
  101 | i:=0;
      | ^
foo.cc:103:1: error: 'j' does not name a type
  103 | j:=0;
      | ^
foo.cc:105:1: error: 'k' does not name a type
  105 | k:=0;
      | ^
foo.cc:107:1: error: 'repeat' does not name a type
  107 | repeat
      | ^~~~~~
foo.cc:111:1: error: expected unqualified-id before 'for'
  111 | for i:=1 to k-1 do
      | ^~~
foo.cc:121:1: error: 'a' does not name a type
  121 | a[i]:=a[j];
      | ^
foo.cc:123:1: error: 'a' does not name a type
  123 | a[j]:=step;
      | ^
foo.cc:125:1: error: 'end' does not name a type
  125 | end;
      | ^~~
foo.cc:127:1: error: 'ans' does not name a type
  127 | ans:=1+k;
      | ^~~
foo.cc:129:9: error: expected constructor, destructor, or type conversion before '(' token
  129 | fillchar(c,sizeof(c),true);
      |         ^
foo.cc:131:1: error: expected unqualified-id before 'for'
  131 | for p:=1 to k do
      | ^~~
foo.cc:135:8: error: expected constructor, destructor, or type conversion before '(' token
  135 | writeln(t+1);
      |        ^
foo.cc:137:1: error: 'End' does not name a type
  137 | End.
      | ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1614 最后の战
语言
C++
递交时间
2022-01-08 20:18:49
评测时间
2022-01-08 20:18:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes