记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1009 航空管制
语言
C++
递交时间
2022-07-12 10:04:39
评测时间
2022-07-12 10:04:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes