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_13808305_20740.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13808305_20740.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13808305_20740.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13808305_20740.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13808305_20740.cpp: In member function 'bool SplayTree::Check()':
0_0_13808305_20740.cpp:13:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         return father-son[1] == this;
                                 ^
0_0_13808305_20740.cpp: In member function 'void SplayTree::Combine(SplayTree*, bool)':
0_0_13808305_20740.cpp:16:18: error: lvalue required as left operand of assignment
         a-father = this;
                  ^
0_0_13808305_20740.cpp: In function 'SplayTree* NewNode(int)':
0_0_13808305_20740.cpp:29:8: error: 'son' was not declared in this scope
     re-son[0] = re-son[1] = nil;
        ^
0_0_13808305_20740.cpp:30:8: error: 'val' was not declared in this scope
     re-val = _;
        ^
0_0_13808305_20740.cpp:31:8: error: 'size' was not declared in this scope
     re-size = 1;
        ^
0_0_13808305_20740.cpp: In function 'void PushUp(SplayTree*)':
0_0_13808305_20740.cpp:37:7: error: 'size' was not declared in this scope
     a-size = a-son[0]-size + a-son[1]-size + 1;
       ^
0_0_13808305_20740.cpp:37:16: error: 'son' was not declared in this scope
     a-size = a-son[0]-size + a-son[1]-size + 1;
                ^
0_0_13808305_20740.cpp: In function 'SplayTree* BuildTree(int, int)':
0_0_13808305_20740.cpp:42:11: error: expected ')' before 'r'
     if(l  r)   return nil;
           ^
0_0_13808305_20740.cpp:43:24: error: expected ',' or ';' before numeric constant
     int mid = (l + r)  1;
                        ^
0_0_13808305_20740.cpp:46:42: error: 'Combine' was not declared in this scope
     re-Combine(BuildTree(l,mid - 1),false);
                                          ^
0_0_13808305_20740.cpp: In function 'void Rotate(SplayTree*&, bool)':
0_0_13808305_20740.cpp:54:22: error: 'father' was not declared in this scope
     SplayTree *f = a-father;
                      ^
0_0_13808305_20740.cpp:55:7: error: 'son' was not declared in this scope
     f-son[!dir] = a-son[dir];
       ^
0_0_13808305_20740.cpp:58:26: error: 'Check' was not declared in this scope
     f-father-son[f-Check()] = a;
                          ^
0_0_13808305_20740.cpp: In function 'void Splay(SplayTree*, SplayTree*)':
0_0_13808305_20740.cpp:67:13: error: 'father' was not declared in this scope
     while(a-father != aim) {
             ^
0_0_13808305_20740.cpp:69:31: error: 'Check' was not declared in this scope
             Rotate(a,!a-Check());
                               ^
0_0_13808305_20740.cpp:70:33: error: 'Check' was not declared in this scope
         else if(!a-father-Check()) {
                                 ^
0_0_13808305_20740.cpp: In function 'SplayTree* Find_(SplayTree*, int)':
0_0_13808305_20740.cpp:86:10: error: expected ')' before 'son'
     if(k son[0]-size) return Find_(a-son[0],k);
          ^
0_0_13808305_20740.cpp:86:38: error: 'son' was not declared in this scope
     if(k son[0]-size) return Find_(a-son[0],k);
                                      ^
0_0_13808305_20740.cpp:87:12: error: 'son' was not declared in this scope
     k -= a-son[0]-size;
            ^
0_0_13808305_20740.cpp:87:19: error: 'size' was not declared in this scope
     k -= a-son[0]-size;
                   ^
0_0_13808305_20740.cpp: In function 'int Find(SplayTree*, int)':
0_0_13808305_20740.cpp:94:10: error: expected ')' before 'son'
     if(k son[0]-size) return Find(a-son[0],k);
          ^
0_0_13808305_20740.cpp:94:37: error: 'son' was not declared in this scope
     if(k son[0]-size) return Find(a-son[0],k);
                                     ^
0_0_13808305_20740.cpp:95:12: error: 'son' was not declared in this scope
     k -= a-son[0]-size;
            ^
0_0_13808305_20740.cpp:95:19: error: 'size' was not declared in this scope
     k -= a-son[0]-size;
                   ^
0_0_13808305_20740.cpp:96:25: error: 'val' was not declared in this scope
     if(k == 1) return a-val;
                         ^
0_0_13808305_20740.cpp: In function 'int Rank(SplayTree*)':
0_0_13808305_20740.cpp:102:16: error: 'son' was not declared in this scope
     int re = a-son[0]-size;
                ^
0_0_13808305_20740.cpp:102:23: error: 'size' was not declared in this scope
     int re = a-son[0]-size;
                       ^
0_0_13808305_20740.cpp:104:20: error: 'Check' was not declared in this scope
         if(a-Check())
                    ^
0_0_13808305_20740.cpp:105:21: error: 'father' was not declared in this scope
             re += a-father-son[0]-size + 1;
                     ^
0_0_13808305_20740.cpp:106:15: error: 'father' was not declared in this scope
         a = a-father;
               ^
0_0_13808305_20740.cpp: In function 'void Insert(int, int)':
0_0_13808305_20740.cpp:115:28: error: 'son' was not declared in this scope
     SplayTree *temp = root-son[1]-son[0];
                            ^
0_0_13808305_20740.cpp:121:35: error: 'Combine' was not declared in this scope
     root-son[1]-Combine(temp,false);
                                   ^
0_0_13808305_20740.cpp: In function 'int main()':
0_0_13808305_20740.cpp:128:5: error: 'cin' was not declared in this scope
     cin  points  asks;
     ^
0_0_13808305_20740.cpp:130:9: error: expected ';' before 'scanf'
         scanf("%d",&src[i]);
         ^
0_0_13808305_20740.cpp:130:27: error: 'scanf' was not declared in this scope
         scanf("%d",&src[i]);
                           ^
0_0_13808305_20740.cpp:130:28: error: expected ')' before ';' token
         scanf("%d",&src[i]);
                            ^
0_0_13808305_20740.cpp:132:10: error: 'father' was not declared in this scope
     root-father = nil;
          ^
0_0_13808305_20740.cpp:133:9: error: 'son' was not declared in this scope
     nil-son[1] = root;
         ^
0_0_13808305_20740.cpp:136:9: error: expected ';' before 'scanf'
         scanf("%s",s);
         ^
0_0_13808305_20740.cpp:136:21: error: 'scanf' was not declared in this scope
         scanf("%s",s);
                     ^
0_0_13808305_20740.cpp:136:22: error: expected ')' before ';' token
         scanf("%s",s);
                      ^
0_0_13808305_20740.cpp:138:25: error: 'x' was not declared in this scope
             scanf("%d",&x);
                         ^
0_0_13808305_20740.cpp:138:26: error: 'scanf' was not declared in this scope
             scanf("%d",&x);
                          ^
0_0_13808305_20740.cpp:139:43: error: 'printf' was not declared in this scope
             printf("%d\n",Find(root,x + 1));
                                           ^
0_0_13808305_20740.cpp:142:25: error: 'x' was not declared in this scope
             scanf("%d",&x);
                         ^
0_0_13808305_20740.cpp:142:26: error: 'scanf' was not declared in this scope
             scanf("%d",&x);
                          ^
0_0_13808305_20740.cpp:143:43: error: 'printf' was not declared in this scope
             printf("%d\n",Rank(pos[x]) - 2);
                                           ^
0_0_13808305_20740.cpp:146:25: error: 'x' was not declared in this scope
             scanf("%d",&x);
                         ^
0_0_13808305_20740.cpp:146:26: error: 'scanf' was not declared in this scope
             scanf("%d",&x);
                          ^
0_0_13808305_20740.cpp:151:25: error: 'x' was not declared in this scope
             scanf("%d",&x);
                         ^
0_0_13808305_20740.cpp:151:26: error: 'scanf' was not declared in this scope
             scanf("%d",&x);
                          ^
0_0_13808305_20740.cpp:156:27: error: 'x' was not declared in this scope
             scanf("%d%d",&x,&y);
                           ^
0_0_13808305_20740.cpp:156:30: error: 'y' was not declared in this scope
             scanf("%d%d",&x,&y);
                              ^
0_0_13808305_20740.cpp:156:31: error: 'scanf' was not declared in this scope
             scanf("%d%d",&x,&y);
                               ^
0_0_13808305_20740.cpp:157:20: error: continue statement not within a loop
             if(!y) continue;
                    ^
0_0_13808305_20740.cpp:159:24: error: 'temp' was not declared in this scope
             if(y == 1) temp = rank + 1;
                        ^
0_0_13808305_20740.cpp:160:18: error: 'temp' was not declared in this scope
             else temp = rank - 1;
                  ^
0_0_13808305_20740.cpp:161:25: error: 'temp' was not declared in this scope
             Insert(rank,temp);
                         ^
0_0_13808305_20740.cpp: At global scope:
0_0_13808305_20740.cpp:164:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_13808305_20740.cpp:165:1: error: expected declaration before '}' token
 }
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-11 00:46:11, Gzip enabled