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_19935526_6063.cpp: In function 'void pushdown(int)':
0_0_19935526_6063.cpp:4:8: error: 'c' was not declared in this scope
  int l=c[x][0],r=c[x][1];
        ^
0_0_19935526_6063.cpp:5:5: error: 'rev' was not declared in this scope
  if(rev[x]){
     ^
0_0_19935526_6063.cpp:6:27: error: 'r' was not declared in this scope
   rev[x]^=1;rev[l]^=1;rev[r]^=1;
                           ^
0_0_19935526_6063.cpp:7:23: error: 'swap' was not declared in this scope
   swap(c[x][0],c[x][1]);
                       ^
0_0_19935526_6063.cpp:9:5: error: 'tag' was not declared in this scope
  if(tag[x]){
     ^
0_0_19935526_6063.cpp:10:24: error: 'val' was not declared in this scope
   if(l) tag[l]+=tag[x],val[l]+=tag[x],mx[l]+=tag[x];
                        ^
0_0_19935526_6063.cpp:10:39: error: 'mx' was not declared in this scope
   if(l) tag[l]+=tag[x],val[l]+=tag[x],mx[l]+=tag[x];
                                       ^
0_0_19935526_6063.cpp:11:6: error: 'r' was not declared in this scope
   if(r) tag[r]+=tag[x],val[r]+=tag[x],mx[r]+=tag[x];
      ^
0_0_19935526_6063.cpp:11:24: error: 'val' was not declared in this scope
   if(r) tag[r]+=tag[x],val[r]+=tag[x],mx[r]+=tag[x];
                        ^
0_0_19935526_6063.cpp:11:39: error: 'mx' was not declared in this scope
   if(r) tag[r]+=tag[x],val[r]+=tag[x],mx[r]+=tag[x];
                                       ^
0_0_19935526_6063.cpp: In function 'void updata(int)':
0_0_19935526_6063.cpp:16:8: error: 'c' was not declared in this scope
  int l=c[x][0],r=c[x][1];
        ^
0_0_19935526_6063.cpp:17:2: error: 'mx' was not declared in this scope
  mx[x]=max(val[x],max(mx[l],mx[r]));
  ^
0_0_19935526_6063.cpp:17:12: error: 'val' was not declared in this scope
  mx[x]=max(val[x],max(mx[l],mx[r]));
            ^
0_0_19935526_6063.cpp:17:32: error: 'r' was not declared in this scope
  mx[x]=max(val[x],max(mx[l],mx[r]));
                                ^
0_0_19935526_6063.cpp:17:34: error: 'max' was not declared in this scope
  mx[x]=max(val[x],max(mx[l],mx[r]));
                                  ^
0_0_19935526_6063.cpp:17:35: error: 'max' was not declared in this scope
  mx[x]=max(val[x],max(mx[l],mx[r]));
                                   ^
0_0_19935526_6063.cpp:17:35: error: redeclaration of '<typeprefixerror>max'
0_0_19935526_6063.cpp:17:34: note: previous declaration '<typeprefixerror>max'
  mx[x]=max(val[x],max(mx[l],mx[r]));
                                  ^
0_0_19935526_6063.cpp: In function 'bool isroot(int)':
0_0_19935526_6063.cpp:20:9: error: 'c' was not declared in this scope
  return c[fa[x]][0]!=x&&c[fa[x]][1]!=x;
         ^
0_0_19935526_6063.cpp:20:11: error: 'fa' was not declared in this scope
  return c[fa[x]][0]!=x&&c[fa[x]][1]!=x;
           ^
0_0_19935526_6063.cpp: In function 'void rotate(int)':
0_0_19935526_6063.cpp:23:8: error: 'fa' was not declared in this scope
  int y=fa[x],z=fa[y],l,r;
        ^
0_0_19935526_6063.cpp:24:2: error: 'l' was not declared in this scope
  l=(c[y][1]==x);r=l^1;
  ^
0_0_19935526_6063.cpp:24:5: error: 'c' was not declared in this scope
  l=(c[y][1]==x);r=l^1;
     ^
0_0_19935526_6063.cpp:24:17: error: 'r' was not declared in this scope
  l=(c[y][1]==x);r=l^1;
                 ^
0_0_19935526_6063.cpp:25:19: error: 'z' was not declared in this scope
  if(!isroot(y)) c[z][c[z][1]==y]=x;
                   ^
0_0_19935526_6063.cpp:26:8: error: 'z' was not declared in this scope
  fa[x]=z;fa[y]=x;fa[c[x][r]]=y;
        ^
0_0_19935526_6063.cpp: In function 'void splay(int)':
0_0_19935526_6063.cpp:31:12: error: 'st' was not declared in this scope
  int top=0;st[++top]=x;
            ^
0_0_19935526_6063.cpp:32:27: error: 'fa' was not declared in this scope
  for(int i=x;!isroot(i);i=fa[i]) st[++top]=fa[i];
                           ^
0_0_19935526_6063.cpp:35:9: error: 'fa' was not declared in this scope
   int y=fa[x],z=fa[y];
         ^
0_0_19935526_6063.cpp:37:8: error: 'c' was not declared in this scope
    if((c[y][0]==x)^(c[z][0]==y)) rotate(x);
        ^
0_0_19935526_6063.cpp:37:23: error: 'z' was not declared in this scope
    if((c[y][0]==x)^(c[z][0]==y)) rotate(x);
                       ^
0_0_19935526_6063.cpp: In function 'void access(int)':
0_0_19935526_6063.cpp:44:18: error: 'fa' was not declared in this scope
  for(int t=0;x;x=fa[x]) splay(x),c[x][1]=t,updata(x),t=x;
                  ^
0_0_19935526_6063.cpp:44:34: error: 'c' was not declared in this scope
  for(int t=0;x;x=fa[x]) splay(x),c[x][1]=t,updata(x),t=x;
                                  ^
0_0_19935526_6063.cpp: In function 'void rever(int)':
0_0_19935526_6063.cpp:49:2: error: 'rev' was not declared in this scope
  rev[x]^=1;
  ^
0_0_19935526_6063.cpp: In function 'void link(int, int)':
0_0_19935526_6063.cpp:53:2: error: 'fa' was not declared in this scope
  fa[x]=y;
  ^
0_0_19935526_6063.cpp: In function 'void cut(int, int)':
0_0_19935526_6063.cpp:59:2: error: 'c' was not declared in this scope
  c[y][0]=fa[x]=0;
  ^
0_0_19935526_6063.cpp:59:10: error: 'fa' was not declared in this scope
  c[y][0]=fa[x]=0;
          ^


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-11-17 08:26:47, Gzip enabled