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_18476204_12483.cpp:114:1: error: expected unqualified-id before '<' token
 <span style="white-space:pre"> </span>    //找到x这棵子树的树根
 ^
0_0_18476204_12483.cpp:122:16: error: 'x' has not been declared
         Access(x);
                ^
0_0_18476204_12483.cpp:122:9: error: 'int LCT::Access(int)' cannot be overloaded
         Access(x);
         ^
0_0_18476204_12483.cpp:105:10: error: with 'void LCT::Access(int)'
     void Access(int x){
          ^
0_0_18476204_12483.cpp:123:15: error: 'x' has not been declared
         Splay(x);
               ^
0_0_18476204_12483.cpp:123:9: error: 'int LCT::Splay(int)' cannot be overloaded
         Splay(x);
         ^
0_0_18476204_12483.cpp:81:10: error: with 'void LCT::Splay(int)'
     void Splay(int x){
          ^
0_0_18476204_12483.cpp:124:21: error: 'x' has not been declared
         Update_Flip(x);
                     ^
0_0_18476204_12483.cpp:124:9: error: 'int LCT::Update_Flip(int)' cannot be overloaded
         Update_Flip(x);
         ^
0_0_18476204_12483.cpp:29:10: error: with 'void LCT::Update_Flip(int)'
     void Update_Flip(int x){
          ^
0_0_18476204_12483.cpp:125:5: error: expected ';' after struct definition
     }
     ^
0_0_18476204_12483.cpp: In function 'bool Link(int, int)':
0_0_18476204_12483.cpp:128:21: error: 'GetRoot' was not declared in this scope
         if(GetRoot(u) == GetRoot(v))    return false;
                     ^
0_0_18476204_12483.cpp:129:19: error: 'MakeRoot' was not declared in this scope
         MakeRoot(u);
                   ^
0_0_18476204_12483.cpp:130:9: error: 'pre' was not declared in this scope
         pre[u] = v;
         ^
0_0_18476204_12483.cpp:131:17: error: 'Access' was not declared in this scope
         Access(u);
                 ^
0_0_18476204_12483.cpp: In function 'bool Cut(int, int)':
0_0_18476204_12483.cpp:136:31: error: 'GetRoot' was not declared in this scope
         if(u == v || GetRoot(u) != GetRoot(v))    return false;
                               ^
0_0_18476204_12483.cpp:137:19: error: 'MakeRoot' was not declared in this scope
         MakeRoot(u);
                   ^
0_0_18476204_12483.cpp:138:17: error: 'Access' was not declared in this scope
         Access(v);
                 ^
0_0_18476204_12483.cpp:139:16: error: 'Splay' was not declared in this scope
         Splay(v);
                ^
0_0_18476204_12483.cpp:140:12: error: 'ch' was not declared in this scope
         if(ch[v][0])    pre[ch[v][0]] = pre[v],rt[ch[v][0]] = true;
            ^
0_0_18476204_12483.cpp:140:25: error: 'pre' was not declared in this scope
         if(ch[v][0])    pre[ch[v][0]] = pre[v],rt[ch[v][0]] = true;
                         ^
0_0_18476204_12483.cpp:140:48: error: 'rt' was not declared in this scope
         if(ch[v][0])    pre[ch[v][0]] = pre[v],rt[ch[v][0]] = true;
                                                ^
0_0_18476204_12483.cpp:141:9: error: 'pre' was not declared in this scope
         pre[v] = 0;
         ^
0_0_18476204_12483.cpp:142:9: error: 'ch' was not declared in this scope
         ch[v][0] = 0;
         ^
0_0_18476204_12483.cpp:143:17: error: 'PushUp' was not declared in this scope
         PushUp(v);
                 ^
0_0_18476204_12483.cpp: In function 'bool Add(int, int, int)':
0_0_18476204_12483.cpp:148:27: error: 'GetRoot' was not declared in this scope
         int t1 = GetRoot(u);
                           ^
0_0_18476204_12483.cpp:151:19: error: 'MakeRoot' was not declared in this scope
         MakeRoot(u);
                   ^
0_0_18476204_12483.cpp:152:17: error: 'Access' was not declared in this scope
         Access(v);
                 ^
0_0_18476204_12483.cpp:153:16: error: 'Splay' was not declared in this scope
         Splay(v);
                ^
0_0_18476204_12483.cpp:154:23: error: 'Update_Add' was not declared in this scope
         Update_Add(v,w);
                       ^
0_0_18476204_12483.cpp: In function 'int Query(int, int)':
0_0_18476204_12483.cpp:159:27: error: 'GetRoot' was not declared in this scope
         int t1 = GetRoot(u);
                           ^
0_0_18476204_12483.cpp:162:19: error: 'MakeRoot' was not declared in this scope
         MakeRoot(u);
                   ^
0_0_18476204_12483.cpp:163:17: error: 'Access' was not declared in this scope
         Access(v);
                 ^
0_0_18476204_12483.cpp:164:16: error: 'Splay' was not declared in this scope
         Splay(v);
                ^
0_0_18476204_12483.cpp:165:16: error: 'maxx' was not declared in this scope
         return maxx[v];
                ^
0_0_18476204_12483.cpp: At global scope:
0_0_18476204_12483.cpp:168:1: error: expected declaration before '}' token
 }lct;
 ^


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-26 03:22:18, Gzip enabled