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_34228847_20257.cpp:138:5: error: 'T' does not name a type
     T[maxn+10];
     ^
0_0_34228847_20257.cpp: In function 'int President_Tree::President_Tree_init()':
0_0_34228847_20257.cpp:149:16: error: 'T' was not declared in this scope
         memset(T, 0, sizeof(T));
                ^
0_0_34228847_20257.cpp: In function 'void solve()':
0_0_34228847_20257.cpp:215:9: error: 'T' is not a member of 'President_Tree'
         President_Tree::T[0]=President_Tree::build(1, cntb);
         ^
0_0_34228847_20257.cpp:219:13: error: 'T' is not a member of 'President_Tree'
             President_Tree::T[i]=President_Tree::update(President_Tree::T[i-1], 1, cntb, index);
             ^
0_0_34228847_20257.cpp:219:57: error: 'T' is not a member of 'President_Tree'
             President_Tree::T[i]=President_Tree::update(President_Tree::T[i-1], 1, cntb, index);
                                                         ^
0_0_34228847_20257.cpp:262:50: error: 'T' is not a member of 'President_Tree'
             printf("%d\n", President_Tree::query(President_Tree::T[ansL-1], President_Tree::T[R], 1, cntb, k));
                                                  ^
0_0_34228847_20257.cpp:262:77: error: 'T' is not a member of 'President_Tree'
             printf("%d\n", President_Tree::query(President_Tree::T[ansL-1], President_Tree::T[R], 1, cntb, k));
                                                                             ^


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-12-04 19:09:10, Gzip enabled