/ Vijos /

记录详情

Compile Error

/in/foo.cc:5:30: error: too many decimal points in number
 var head,deg,inp,a,b,q:array[0..maxn] of longint;
                              ^~~~~~~
/in/foo.cc:7:9: error: too many decimal points in number
 e:array[0..maxm] of node;
         ^~~~~~~
/in/foo.cc:86:14: warning: character constant too long for its type
 assign(input,'input.txt');assign(output,'output.txt');
              ^~~~~~~~~~~
/in/foo.cc:86:41: warning: character constant too long for its type
 assign(input,'input.txt');assign(output,'output.txt');
                                         ^~~~~~~~~~~~
/in/foo.cc:1:7: error: 'maxn' does not name a type
 const maxn=2000+10;maxm=10000+10;
       ^~~~
/in/foo.cc:1:20: error: 'maxm' does not name a type
 const maxn=2000+10;maxm=10000+10;
                    ^~~~
/in/foo.cc:2:1: error: 'type' does not name a type
 type node=record
 ^~~~
/in/foo.cc:4:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:5:1: error: 'var' does not name a type
 var head,deg,inp,a,b,q:array[0..maxn] of longint;
 ^~~
/in/foo.cc:6:1: error: 'h' does not name a type
 h,t,i,n,m,x,y:longint;
 ^
/in/foo.cc:7:2: error: found ':' in nested-name-specifier, expected '::'
 e:array[0..maxm] of node;
  ^
/in/foo.cc:7:1: error: 'e' does not name a type
 e:array[0..maxm] of node;
 ^
/in/foo.cc:8:1: error: 'procedure' does not name a type
 procedure sort(l,r:longint);
 ^~~~~~~~~
/in/foo.cc:9:1: error: 'var' does not name a type
 var i,j,m,temp:longint;
 ^~~
/in/foo.cc:10:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:11:6: error: 'j' does not name a type
 i:=l;j:=r;x:=a[(i+j)>>1];
      ^
/in/foo.cc:11:11: error: 'x' does not name a type
 i:=l;j:=r;x:=a[(i+j)>>1];
           ^
/in/foo.cc:12:1: error: 'repeat' does not name a type
 repeat
 ^~~~~~
/in/foo.cc:14:1: error: expected unqualified-id before 'while'
 while b[a[j]]>b[x] do dec(j);
 ^~~~~
/in/foo.cc:15:1: error: expected unqualified-id before 'if'
 if i<=j then
 ^~
/in/foo.cc:17:9: error: 'a' does not name a type
 y:=a[i];a[i]:=a[j];a[j]:=y;
         ^
/in/foo.cc:17:20: error: 'a' does not name a type
 y:=a[i];a[i]:=a[j];a[j]:=y;
                    ^
/in/foo.cc:18:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(i);dec(j);
    ^
/in/foo.cc:18:11: error: expected constructor, destructor, or type conversion before '(' token
 inc(i);dec(j);
           ^
/in/foo.cc:19:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:20:1: error: 'until' does not name a type
 until i>j;
 ^~~~~
/in/foo.cc:21:1: error: expected unqualified-id before 'if'
 if i<r then sort(i,r);
 ^~
/in/foo.cc:22:1: error: expected unqualified-id before 'if'
 if j>l then sort(l,j);
 ^~
/in/foo.cc:23:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:24:1: error: 'procedure' does not name a type
 procedure init;
 ^~~~~~~~~
/in/foo.cc:25:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:27:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:30:1: error: 'b' does not name a type
 b[i]:=n-b[i];
 ^
/in/foo.cc:31:1: error: 'a' does not name a type
 a[i]:=i;
 ^
/in/foo.cc:32:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:33:5: error: expected constructor, destructor, or type conversion before '(' token
 sort(1,n);
     ^
/in/foo.cc:34:1: error: expected unqualified-id before 'for'
 for i:=1 to m do
 ^~~
/in/foo.cc:37:1: error: 'e' does not name a type
 e[i].go:=y;inc(inp[y]);e[i].next:=head[x];head[x]:=i;
 ^
/in/foo.cc:37:15: error: expected constructor, destructor, or type conversion before '(' token
 e[i].go:=y;inc(inp[y]);e[i].next:=head[x];head[x]:=i;
               ^
/in/foo.cc:37:24: error: 'e' does not name a type
 e[i].go:=y;inc(inp[y]);e[i].next:=head[x];head[x]:=i;
                        ^
/in/foo.cc:37:43: error: 'head' does not name a type
 e[i].go:=y;inc(inp[y]);e[i].next:=head[x];head[x]:=i;
                                           ^~~~
/in/foo.cc:38:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:39:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:40:1: error: 'procedure' does not name a type
 procedure work(x:longint);
 ^~~~~~~~~
/in/foo.cc:41:1: error: 'var' does not name a type
 var i,p,j,u,v:longint;
 ^~~
/in/foo.cc:42:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:44:1: error: 'h' does not name a type
 h:=0;t:=0;p:=1;
 ^
/in/foo.cc:44:6: error: 't' does not name a type
 h:=0;t:=0;p:=1;
      ^
/in/foo.cc:44:11: error: 'p' does not name a type
 h:=0;t:=0;p:=1;
           ^
/in/foo.cc:45:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:50:1: error: expected unqualified-id before 'if'
 if (deg[v]=0) and (v<>x) then
 ^~
/in/foo.cc:52:8: error: 'q' does not name a type
 inc(t);q[t]:=v;
        ^
/in/foo.cc:53:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:54:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(p);
    ^
/in/foo.cc:55:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:56:1: error: expected unqualified-id before 'if'
 if h<t then
 ^~
/in/foo.cc:59:1: error: 'u' does not name a type
 u:=q[h];
 ^
/in/foo.cc:60:1: error: 'j' does not name a type
 j:=head[u];
 ^
/in/foo.cc:61:1: error: expected unqualified-id before 'while'
 while j<>0 do
 ^~~~~
/in/foo.cc:64:4: error: expected constructor, destructor, or type conversion before '(' token
 dec(deg[v]);
    ^
/in/foo.cc:65:1: error: expected unqualified-id before 'if'
 if (deg[v]=0) and (v<>x) and (b[v]<i) then
 ^~
/in/foo.cc:67:8: error: 'q' does not name a type
 inc(t);q[t]:=v;
        ^
/in/foo.cc:68:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:69:1: error: 'j' does not name a type
 j:=e[j].next;
 ^
/in/foo.cc:70:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:71:1: error: 'end' does not name a type
 end
 ^~~
/in/foo.cc:73:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:74:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:75:1: error: 'procedure' does not name a type
 procedure main;
 ^~~~~~~~~
/in/foo.cc:76:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:78:1: error: expected unqualified-id before 'for'
 for i:=t downto 1 do write(q[i],' ');writeln;
 ^~~
/in/foo.cc:78:38: error: 'writeln' does not name a type
 for i:=t downto 1 do write(q[i],' ');writeln;
                                      ^~~~~~~
/in/foo.cc:79:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:82:6: error: expected constructor, destructor, or type conversion before '(' token
 write(n-t,' ');
      ^
/in/foo.cc:83:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:84:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:85:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:86:33: error: expected constructor, destructor, or type conversion before '(' token
 assign(input,'input.txt');assign(output,'output.txt');
                                 ^
/in/foo.cc:87:6: error: expected constructor, destructor, or type conversion before '(' token
 reset(input);rewrite(output);
      ^
/in/foo.cc:87:21: error: expected constructor, destructor, or type conversion before '(' token
 reset(input);rewrite(output);
                     ^
/in/foo.cc:88:1: error: 'init' does not name a type
 init;
 ^~~~
/in/foo.cc:89:1: error: 'main' does not name a type
 main;
 ^~~~
/in/foo.cc:90:6: error: expected constructor, destructor, or type conversion before '(' token
 close(input);close(output);
      ^
/in/foo.cc:90:19: error: expected constructor, destructor, or type conversion before '(' token
 close(input);close(output);
                   ^
/in/foo.cc:91:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1819 航空管制
语言
C++
递交时间
2021-05-30 11:55:50
评测时间
2021-05-30 11:55:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes