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_23199214_3323.cpp:10:1: error: 'rt' does not name a type
 rt<<1|1
 ^
0_0_23199214_3323.cpp:51:1: error: 'traversal' does not name a type
 traversal
 ^
0_0_23199214_3323.cpp:56:1: error: 'traversal' does not name a type
 traversal
 ^
0_0_23199214_3323.cpp:60:1: error: 'index1' does not name a type
 index1 in K[]
 ^
0_0_23199214_3323.cpp:103:11: error: 'maxn' was not declared in this scope
     int P[maxn];
           ^
0_0_23199214_3323.cpp:105:11: error: 'maxn' was not declared in this scope
     int R[maxn];
           ^
0_0_23199214_3323.cpp:107:11: error: 'maxn' was not declared in this scope
     int L[maxn];
           ^
0_0_23199214_3323.cpp:109:11: error: 'maxn' was not declared in this scope
     int K[maxn];
           ^
0_0_23199214_3323.cpp:113:1: error: 'lenghth' does not name a type
 lenghth of BST
 ^
0_0_23199214_3323.cpp: In member function 'void BinarySearchTree::Clear()':
0_0_23199214_3323.cpp:37:10: error: 'K' was not declared in this scope
   memset(K,0,sizeof(K));
          ^
0_0_23199214_3323.cpp:39:10: error: 'L' was not declared in this scope
   memset(L,0,sizeof(L));
          ^
0_0_23199214_3323.cpp:41:10: error: 'R' was not declared in this scope
   memset(R,0,sizeof(R));
          ^
0_0_23199214_3323.cpp:43:10: error: 'P' was not declared in this scope
   memset(P,0,sizeof(P));
          ^
0_0_23199214_3323.cpp: In member function 'void BinarySearchTree::LMR()':
0_0_23199214_3323.cpp:48:9: error: no matching function for call to 'BinarySearchTree::LMR(int&)'
  {LMR(RT); LN;}  
         ^
0_0_23199214_3323.cpp:48:9: note: candidate is:
0_0_23199214_3323.cpp:47:11: note: void BinarySearchTree::LMR()
     void  LMR()
           ^
0_0_23199214_3323.cpp:47:11: note:   candidate expects 0 arguments, 1 provided
0_0_23199214_3323.cpp: In member function 'void BinarySearchTree::DeleteKey(int)':
0_0_23199214_3323.cpp:67:19: error: no matching function for call to 'BinarySearchTree::Search(int&)'
 {Delete(Search(key));}    
                   ^
0_0_23199214_3323.cpp:67:19: note: candidate is:
0_0_23199214_3323.cpp:261:9: note: int BinarySearchTree::Search(int, int)
     int Search(int root, int key){     // Search key and
         ^
0_0_23199214_3323.cpp:261:9: note:   candidate expects 2 arguments, 1 provided
0_0_23199214_3323.cpp: In member function 'int BinarySearchTree::succKey(int)':
0_0_23199214_3323.cpp:76:10: error: 'K' was not declared in this scope
   return K[succ(Search(key))];
          ^
0_0_23199214_3323.cpp:76:27: error: no matching function for call to 'BinarySearchTree::Search(int&)'
   return K[succ(Search(key))];
                           ^
0_0_23199214_3323.cpp:76:27: note: candidate is:
0_0_23199214_3323.cpp:261:9: note: int BinarySearchTree::Search(int, int)
     int Search(int root, int key){     // Search key and
         ^
0_0_23199214_3323.cpp:261:9: note:   candidate expects 2 arguments, 1 provided
0_0_23199214_3323.cpp: In member function 'int BinarySearchTree::predKey(int)':
0_0_23199214_3323.cpp:85:10: error: 'K' was not declared in this scope
   return K[pred(Search(key))];
          ^
0_0_23199214_3323.cpp:85:27: error: no matching function for call to 'BinarySearchTree::Search(int&)'
   return K[pred(Search(key))];
                           ^
0_0_23199214_3323.cpp:85:27: note: candidate is:
0_0_23199214_3323.cpp:261:9: note: int BinarySearchTree::Search(int, int)
     int Search(int root, int key){     // Search key and
         ^
0_0_23199214_3323.cpp:261:9: note:   candidate expects 2 arguments, 1 provided
0_0_23199214_3323.cpp: In member function 'void BinarySearchTree::testSearch()':
0_0_23199214_3323.cpp:92:4: error: 'K' was not declared in this scope
 PD(K[Search(m[i])]);LN;
    ^
0_0_23199214_3323.cpp:23:28: note: in definition of macro 'PD'
 #define PD(x) printf("%d",(x))
                            ^
0_0_23199214_3323.cpp:92:17: error: no matching function for call to 'BinarySearchTree::Search(int&)'
 PD(K[Search(m[i])]);LN;
                 ^
0_0_23199214_3323.cpp:23:28: note: in definition of macro 'PD'
 #define PD(x) printf("%d",(x))
                            ^
0_0_23199214_3323.cpp:92:17: note: candidate is:
 PD(K[Search(m[i])]);LN;
                 ^
0_0_23199214_3323.cpp:23:28: note: in definition of macro 'PD'
 #define PD(x) printf("%d",(x))
                            ^
0_0_23199214_3323.cpp:261:9: note: int BinarySearchTree::Search(int, int)
     int Search(int root, int key){     // Search key and
         ^
0_0_23199214_3323.cpp:261:9: note:   candidate expects 2 arguments, 1 provided
0_0_23199214_3323.cpp: In member function 'void BinarySearchTree::MLR(int)':
0_0_23199214_3323.cpp:130:1: error: 'traversal' was not declared in this scope
 traversal
 ^
0_0_23199214_3323.cpp:144:4: error: 'K' was not declared in this scope
 PD(K[root]);PP;PD(K[L[root]]);PP;PD(K[R[root]]);PP;PD(K[P[root]]);LN;
    ^
0_0_23199214_3323.cpp:23:28: note: in definition of macro 'PD'
 #define PD(x) printf("%d",(x))
                            ^
0_0_23199214_3323.cpp:144:21: error: 'L' was not declared in this scope
 PD(K[root]);PP;PD(K[L[root]]);PP;PD(K[R[root]]);PP;PD(K[P[root]]);LN;
                     ^
0_0_23199214_3323.cpp:23:28: note: in definition of macro 'PD'
 #define PD(x) printf("%d",(x))
                            ^
0_0_23199214_3323.cpp:144:39: error: 'R' was not declared in this scope
 PD(K[root]);PP;PD(K[L[root]]);PP;PD(K[R[root]]);PP;PD(K[P[root]]);LN;
                                       ^
0_0_23199214_3323.cpp:23:28: note: in definition of macro 'PD'
 #define PD(x) printf("%d",(x))
                            ^
0_0_23199214_3323.cpp:144:57: error: 'P' was not declared in this scope
 PD(K[root]);PP;PD(K[L[root]]);PP;PD(K[R[root]]);PP;PD(K[P[root]]);LN;
                                                         ^
0_0_23199214_3323.cpp:23:28: note: in definition of macro 'PD'
 #define PD(x) printf("%d",(x))
                            ^
0_0_23199214_3323.cpp: In member function 'void BinarySearchTree::Insert(int&, int)':
0_0_23199214_3323.cpp:156:7: error: 'K' was not declared in this scope
       K[root=++SZ]= key;
       ^
0_0_23199214_3323.cpp:163:16: error: 'K' was not declared in this scope
   else if (key<K[root]){
                ^
0_0_23199214_3323.cpp:166:8: error: 'L' was not declared in this scope
 Insert(L[root], key);
        ^
0_0_23199214_3323.cpp:169:1: error: 'P' was not declared in this scope
 P[L[root]]= root;
 ^
0_0_23199214_3323.cpp:176:8: error: 'R' was not declared in this scope
 Insert(R[root], key);
        ^
0_0_23199214_3323.cpp:179:1: error: 'P' was not declared in this scope
 P[R[root]]= root;
 ^
0_0_23199214_3323.cpp: In member function 'void BinarySearchTree::Delete(int, int)':
0_0_23199214_3323.cpp:186:1: error: 'index1' was not declared in this scope
 index1 in K[]
 ^
0_0_23199214_3323.cpp:205:7: error: 'L' was not declared in this scope
   if (L[r]==0){  
       ^
0_0_23199214_3323.cpp:208:7: error: 'P' was not declared in this scope
       P[R[r]]=
       ^
0_0_23199214_3323.cpp:208:9: error: 'R' was not declared in this scope
       P[R[r]]=
         ^
0_0_23199214_3323.cpp:226:7: error: 'R' was not declared in this scope
   if (R[r]==0){  
       ^
0_0_23199214_3323.cpp:230:7: error: 'P' was not declared in this scope
       P[L[r]]=
       ^
0_0_23199214_3323.cpp:230:9: error: 'L' was not declared in this scope
       P[L[r]]=
         ^
0_0_23199214_3323.cpp:250:17: error: 'R' was not declared in this scope
   int y= getMin(R[r]);  
                 ^
0_0_23199214_3323.cpp:253:3: error: 'K' was not declared in this scope
   K[r]= K[y];
   ^
0_0_23199214_3323.cpp: In member function 'int BinarySearchTree::Search(int, int)':
0_0_23199214_3323.cpp:264:3: error: expected ';' before 'if'
   if (root==0 || K[root]==key){
   ^
0_0_23199214_3323.cpp:264:18: error: 'K' was not declared in this scope
   if (root==0 || K[root]==key){
                  ^
0_0_23199214_3323.cpp:272:21: error: 'L' was not declared in this scope
       return Search(L[root], key);
                     ^
0_0_23199214_3323.cpp:278:21: error: 'R' was not declared in this scope
       return Search(R[root], key);
                     ^
0_0_23199214_3323.cpp: In member function 'int BinarySearchTree::IterativeSearch(int, int)':
0_0_23199214_3323.cpp:287:19: error: 'K' was not declared in this scope
   while(root!=0 &&K[root]!=key){
                   ^
0_0_23199214_3323.cpp:292:11: error: 'L' was not declared in this scope
     root= L[root];
           ^
0_0_23199214_3323.cpp:297:11: error: 'R' was not declared in this scope
     root= R[root];
           ^
0_0_23199214_3323.cpp: In member function 'int BinarySearchTree::getMax(int)':
0_0_23199214_3323.cpp:308:9: error: 'R' was not declared in this scope
   while(R[root]!=0){
         ^
0_0_23199214_3323.cpp: In member function 'int BinarySearchTree::getMin(int)':
0_0_23199214_3323.cpp:320:9: error: 'L' was not declared in this scope
   while(L[root]!=0){
         ^
0_0_23199214_3323.cpp: In member function 'int BinarySearchTree::succ(int)':
0_0_23199214_3323.cpp:333:6: error: 'R' was not declared in this scope
   if(R[root]!=0){
      ^
0_0_23199214_3323.cpp:339:10: error: 'P' was not declared in this scope
   int y= P[root];
          ^
0_0_23199214_3323.cpp:341:16: error: 'R' was not declared in this scope
  


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-30 11:54:44, Gzip enabled