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_20126056_15682.cpp: In function 'void Rotate(int, int&)':
0_0_20126056_15682.cpp:5:11: error: 'fa' was not declared in this scope
     int y=fa[x],z=fa[y],l,r;
           ^
0_0_20126056_15682.cpp:6:9: error: 'son' was not declared in this scope
     if (son[y][0]==x) l=0;else l=1;
         ^
0_0_20126056_15682.cpp:6:23: error: 'l' was not declared in this scope
     if (son[y][0]==x) l=0;else l=1;
                       ^
0_0_20126056_15682.cpp:6:32: error: 'l' was not declared in this scope
     if (son[y][0]==x) l=0;else l=1;
                                ^
0_0_20126056_15682.cpp:7:5: error: 'r' was not declared in this scope
     r=l^1;
     ^
0_0_20126056_15682.cpp:7:7: error: 'l' was not declared in this scope
     r=l^1;
       ^
0_0_20126056_15682.cpp:10:13: error: 'son' was not declared in this scope
         if (son[z][0]==y) son[z][0]=x;else son[z][1]=x;
             ^
0_0_20126056_15682.cpp:10:17: error: 'z' was not declared in this scope
         if (son[z][0]==y) son[z][0]=x;else son[z][1]=x;
                 ^
0_0_20126056_15682.cpp:12:11: error: 'z' was not declared in this scope
     fa[x]=z;fa[y]=x;fa[son[x][r]]=y;
           ^
0_0_20126056_15682.cpp:12:24: error: 'son' was not declared in this scope
     fa[x]=z;fa[y]=x;fa[son[x][r]]=y;
                        ^
0_0_20126056_15682.cpp: In function 'void splay(int, int&)':
0_0_20126056_15682.cpp:19:15: error: 'fa' was not declared in this scope
         int y=fa[x];int z=fa[y];
               ^
0_0_20126056_15682.cpp:22:18: error: 'son' was not declared in this scope
             if ((son[z][0]==y)^(son[y][0]==x)) Rotate(x,k);
                  ^
0_0_20126056_15682.cpp: In function 'void insert(int, int&, int)':
0_0_20126056_15682.cpp:32:6: error: 'num' was not declared in this scope
      num++;
      ^
0_0_20126056_15682.cpp:34:6: error: 'tree' was not declared in this scope
      tree[num]=key;
      ^
0_0_20126056_15682.cpp:35:6: error: 'fa' was not declared in this scope
      fa[num]=father;
      ^
0_0_20126056_15682.cpp:36:14: error: 'root' was not declared in this scope
      splay(k,root);
              ^
0_0_20126056_15682.cpp:38:9: error: 'tree' was not declared in this scope
     if (tree[k]<=key) insert(key,son[k][1],k);else insert(key,son[k][0],k);
         ^
0_0_20126056_15682.cpp:38:34: error: 'son' was not declared in this scope
     if (tree[k]<=key) insert(key,son[k][1],k);else insert(key,son[k][0],k);
                                  ^
0_0_20126056_15682.cpp:38:63: error: 'son' was not declared in this scope
     if (tree[k]<=key) insert(key,son[k][1],k);else insert(key,son[k][0],k);
                                                               ^
0_0_20126056_15682.cpp: In function 'void find_before(int, int)':
0_0_20126056_15682.cpp:43:6: error: 'tree' was not declared in this scope
  if (tree[k]<=key) 
      ^
0_0_20126056_15682.cpp:45:3: error: 'ans' was not declared in this scope
   ans=k;//ans¼´ÎªÇ°Çý
   ^
0_0_20126056_15682.cpp:46:19: error: 'son' was not declared in this scope
   find_before(key,son[k][1]);
                   ^
0_0_20126056_15682.cpp:47:24: error: 'son' was not declared in this scope
  }else find_before(key,son[k][0]);
                        ^
0_0_20126056_15682.cpp: In function 'void find_after(int, int)':
0_0_20126056_15682.cpp:52:6: error: 'tree' was not declared in this scope
  if (tree[k]>=key) 
      ^
0_0_20126056_15682.cpp:54:3: error: 'ans' was not declared in this scope
   ans=k;//ans¼´Îªºó¼Ì
   ^
0_0_20126056_15682.cpp:55:19: error: 'son' was not declared in this scope
   find_before(key,son[k][0]);
                   ^
0_0_20126056_15682.cpp:56:24: error: 'son' was not declared in this scope
  }else find_before(key,son[k][1]);
                        ^
0_0_20126056_15682.cpp: In function 'void find(int, int)':
0_0_20126056_15682.cpp:61:6: error: 'tree' was not declared in this scope
  if (tree[k]==key) return k;
      ^
0_0_20126056_15682.cpp:61:27: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if (tree[k]==key) return k;
                           ^
0_0_20126056_15682.cpp:62:6: error: 'tree' was not declared in this scope
  if (tree[k]<key) return find(key,son[k][1]);
      ^
0_0_20126056_15682.cpp:62:35: error: 'son' was not declared in this scope
  if (tree[k]<key) return find(key,son[k][1]);
                                   ^
0_0_20126056_15682.cpp:62:44: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if (tree[k]<key) return find(key,son[k][1]);
                                            ^
0_0_20126056_15682.cpp:63:27: error: 'son' was not declared in this scope
      else return find(key,son[k][0]);
                           ^
0_0_20126056_15682.cpp:63:36: error: return-statement with a value, in function returning 'void' [-fpermissive]
      else return find(key,son[k][0]);
                                    ^
0_0_20126056_15682.cpp: In function 'void Delete(int)':
0_0_20126056_15682.cpp:67:15: error: 'root' was not declared in this scope
  int t=find(x,root);
               ^
0_0_20126056_15682.cpp:71:7: error: 'son' was not declared in this scope
   if (son[t][0]==0) root=son[t][1];
       ^
0_0_20126056_15682.cpp:77:19: error: 'tr' was not declared in this scope
     find_before(x,tr[x][0]);
                   ^
0_0_20126056_15682.cpp:78:11: error: 'ans' was not declared in this scope
     splay(ans,son[t][0]);
           ^
0_0_20126056_15682.cpp:81:5: error: 'fa' was not declared in this scope
     fa[son[t][1]]=root;
     ^


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-19 22:34:51, Gzip enabled