F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_15952249_30707.cpp:2:41: error: too many decimal points in number
 var father,content,connection,key:array[0..maxn] of longint;
                                         ^
0_0_15952249_30707.cpp:3:20: error: too many decimal points in number
     children:array[0..maxn,1..2] of longint;
                    ^
0_0_15952249_30707.cpp:3:28: error: too many decimal points in number
     children:array[0..maxn,1..2] of longint;
                            ^
0_0_15952249_30707.cpp:4:20: error: too many decimal points in number
     reversed:array[0..maxn] of boolean;
                    ^
0_0_15952249_30707.cpp:1:7: error: 'maxn' does not name a type
 const maxn=300010;
       ^
0_0_15952249_30707.cpp:2:1: error: 'var' does not name a type
 var father,content,connection,key:array[0..maxn] of longint;
 ^
0_0_15952249_30707.cpp:3:13: error: found ':' in nested-name-specifier, expected '::'
     children:array[0..maxn,1..2] of longint;
             ^
0_0_15952249_30707.cpp:3:5: error: 'children' does not name a type
     children:array[0..maxn,1..2] of longint;
     ^
0_0_15952249_30707.cpp:4:13: error: found ':' in nested-name-specifier, expected '::'
     reversed:array[0..maxn] of boolean;
             ^
0_0_15952249_30707.cpp:4:5: error: 'reversed' does not name a type
     reversed:array[0..maxn] of boolean;
     ^
0_0_15952249_30707.cpp:5:5: error: 'count' does not name a type
     count,root:longint;
     ^
0_0_15952249_30707.cpp:6:10: error: found ':' in nested-name-specifier, expected '::'
     first:boolean;
          ^
0_0_15952249_30707.cpp:6:5: error: 'first' does not name a type
     first:boolean;
     ^
0_0_15952249_30707.cpp:7:1: error: 'procedure' does not name a type
 procedure test(x:longint); forward;
 ^
0_0_15952249_30707.cpp:7:28: error: 'forward' does not name a type
 procedure test(x:longint); forward;
                            ^
0_0_15952249_30707.cpp:8:1: error: 'procedure' does not name a type
 procedure pushdown(x:longint);
 ^
0_0_15952249_30707.cpp:9:3: error: 'var' does not name a type
   var tmp:longint;
   ^
0_0_15952249_30707.cpp:10:3: error: 'begin' does not name a type
   begin
   ^
0_0_15952249_30707.cpp:12:5: error: 'tmp' does not name a type
     tmp:=children[x,1]; children[x,1]:=children[x,2]; children[x,2]:=tmp;
     ^
0_0_15952249_30707.cpp:12:25: error: 'children' does not name a type
     tmp:=children[x,1]; children[x,1]:=children[x,2]; children[x,2]:=tmp;
                         ^
0_0_15952249_30707.cpp:12:55: error: 'children' does not name a type
     tmp:=children[x,1]; children[x,1]:=children[x,2]; children[x,2]:=tmp;
                                                       ^
0_0_15952249_30707.cpp:13:5: error: expected unqualified-id before 'if'
     if children[x,1]<>0 then begin
     ^
0_0_15952249_30707.cpp:15:7: error: 'reversed' does not name a type
       reversed[children[x,1]]:=not reversed[children[x,1]];
       ^
0_0_15952249_30707.cpp:16:5: error: 'end' does not name a type
     end;
     ^
0_0_15952249_30707.cpp:17:5: error: expected unqualified-id before 'if'
     if children[x,2]<>0 then begin
     ^
0_0_15952249_30707.cpp:19:7: error: 'reversed' does not name a type
       reversed[children[x,2]]:=not reversed[children[x,2]];
       ^
0_0_15952249_30707.cpp:20:5: error: 'end' does not name a type
     end;
     ^
0_0_15952249_30707.cpp:21:5: error: 'reversed' does not name a type
     reversed[x]:=false;
     ^
0_0_15952249_30707.cpp:22:3: error: 'end' does not name a type
   end;
   ^
0_0_15952249_30707.cpp:23:1: error: 'procedure' does not name a type
 procedure pushup(x:longint);
 ^
0_0_15952249_30707.cpp:24:3: error: 'begin' does not name a type
   begin
   ^
0_0_15952249_30707.cpp:26:3: error: 'end' does not name a type
   end;
   ^
0_0_15952249_30707.cpp:27:1: error: 'procedure' does not name a type
 procedure rotate(x:longint);
 ^
0_0_15952249_30707.cpp:28:3: error: 'var' does not name a type
   var y,fy,cx,cy,c1,c2,c3,ch:longint;
   ^
0_0_15952249_30707.cpp:29:3: error: 'begin' does not name a type
   begin
   ^
0_0_15952249_30707.cpp:30:19: error: 'fy' does not name a type
     y:=father[x]; fy:=father[y];
                   ^
0_0_15952249_30707.cpp:31:13: error: expected constructor, destructor, or type conversion before '(' token
     pushdown(y); pushdown(x);
             ^
0_0_15952249_30707.cpp:31:26: error: expected constructor, destructor, or type conversion before '(' token
     pushdown(y); pushdown(x);
                          ^
0_0_15952249_30707.cpp:32:5: error: 'cx' does not name a type
     cx:=connection[x]; cy:=connection[y];
     ^
0_0_15952249_30707.cpp:32:24: error: 'cy' does not name a type
     cx:=connection[x]; cy:=connection[y];
                        ^
0_0_15952249_30707.cpp:33:5: error: 'c1' does not name a type
     c1:=content[children[x,cx]];
     ^
0_0_15952249_30707.cpp:34:5: error: 'c2' does not name a type
     c2:=content[children[x,3-cx]];
     ^
0_0_15952249_30707.cpp:35:5: error: 'c3' does not name a type
     c3:=content[children[y,3-cx]];
     ^
0_0_15952249_30707.cpp:36:5: error: 'ch' does not name a type
     ch:=children[x,3-cx];
     ^
0_0_15952249_30707.cpp:37:5: error: 'father' does not name a type
     father[x]:=fy; connection[x]:=cy;
     ^
0_0_15952249_30707.cpp:37:20: error: 'connection' does not name a type
     father[x]:=fy; connection[x]:=cy;
                    ^
0_0_15952249_30707.cpp:38:5: error: expected unqualified-id before 'if'
     if fy<>0 then children[fy,cy]:=x;
     ^
0_0_15952249_30707.cpp:39:5: error: expected unqualified-id before 'if'
     if fy=0 then root:=x;
     ^
0_0_15952249_30707.cpp:40:5: error: 'father' does not name a type
     father[y]:=x; connection[y]:=3-cx; children[x,3-cx]:=y;
     ^
0_0_15952249_30707.cpp:40:19: error: 'connection' does not name a type
     father[y]:=x; connection[y]:=3-cx; children[x,3-cx]:=y;
                   ^
0_0_15952249_30707.cpp:40:40: error: 'children' does not name a type
     father[y]:=x; connection[y]:=3-cx; children[x,3-cx]:=y;
                                        ^
0_0_15952249_30707.cpp:41:5: error: 'father' does not name a type
     father[ch]:=y; connection[ch]:=cx; children[y,cx]:=ch;
     ^
0_0_15952249_30707.cpp:41:20: error: 'connection' does not name a type
     father[ch]:=y; connection[ch]:=cx; children[y,cx]:=ch;
                    ^
0_0_15952249_30707.cpp:41:40: error: 'children' does not name a type
     father[ch]:=y; connection[ch]:=cx; children[y,cx]:=ch;
                                        ^
0_0_15952249_30707.cpp:42:5: error: 'content' does not name a type
     content[x]:=c1+c2+c3+2; content[y]:=c2+c3+1;
     ^
0_0_15952249_30707.cpp:42:29: error: 'content' does not name a type
     content[x]:=c1+c2+c3+2; content[y]:=c2+c3+1;
                             ^
0_0_15952249_30707.cpp:43:3: error: 'end' does not name a type
   end;
   ^
0_0_15952249_30707.cpp:44:1: error: 'procedure' does not name a type
 procedure splay(x:longint);
 ^
0_0_15952249_30707.cpp:45:3: error: 'var' does not name a type
   var y,cx,cy:longint;
   ^
0_0_15952249_30707.cpp:46:3: error: 'begin' does not name a type
   begin
   ^
0_0_15952249_30707.cpp:48:21: error: expected unqualified-id before 'if'
       y:=father[x]; if y<>0 then pushdown(y); pushdown(x);
                     ^
0_0_15952249_30707.cpp:48:55: error: expected constructor, destructor, or type conversion before '(' token
       y:=father[x]; if y<>0 then pushdown(y); pushdown(x);
                                                       ^
0_0_15952249_30707.cpp:49:7: error: 'cx' does not name a type
       cx:=connection[x]; cy:=connection[y];
       ^
0_0_15952249_30707.cpp:49:26: error: 'cy' does not name a type
       cx:=connection[x]; cy:=connection[y];
                          ^
0_0_15952249_30707.cpp:50:7: error: expected unqualified-id before 'if'
       if cx=cy then rotate(y) else rotate(x);
       ^
0_0_15952249_30707.cpp:51:7: error: expected unqualified-id before 'if'
       if connection[x]<>3 then rotate(x);
       ^
0_0_15952249_30707.cpp:52:5: error: 'end' does not name a type
     end;
     ^
0_0_15952249_30707.cpp:53:3: error: 'end' does not name a type
   end;
   ^
0_0_15952249_30707.cpp:54:1: error: 'function' does not name a type
 function search(x,r:longint):longint;
 ^
0_0_15952249_30707.cpp:55:3: error: 'begin' does not name a type
   begin
   ^
0_0_15952249_30707.cpp:57:5: error: expected unqualified-id before 'if'
     if (content[children[x,1]]+1)=r then exit(x);
     ^
0_0_15952249_30707.cpp:58:5: error: expected unqualified-id before 'if'
     if (content[children[x,1]]>=r) then
     ^
0_0_15952249_30707.cpp:60:9: error: expected constructor, destructor, or type conversion before '(' token
     exit(search(children[x,2],r-content[children[x,1]]-1));
         ^
0_0_15952249_30707.cpp:61:3: error: 'end' does not name a type
   end;
   ^
0_0_15952249_30707.cpp:62:1: error: 'function' does not name a type
 function select(l,r:longint):longint;
 ^
0_0_15952249_30707.cpp:63:3: error: 'var' does not name a type
   var pre,suc,t:longint;
   ^
0_0_15952249_30707.cpp:64:3: error: 'begin' does not name a type
   begin
   ^
0_0_15952249_30707.cpp:65:26: error: 'suc' does not name a type
     pre:=search(root,l); suc:=search(root,r+2);
                          ^
0_0_15952249_30707.cpp:66:10: error: expected constructor, destruct


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 22:27:37, Gzip enabled