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_33226813_25867.cpp: In member function 'std::pair<int, int> tree_2::que(int, int, int, int)':
0_0_33226813_25867.cpp:115:76: error: 'query' was not declared in this scope
         if(sum[lson(rt)] >= rank) return query(lson(rt), l, mid(l, r), rank);
                                                                            ^
0_0_33226813_25867.cpp:116:75: error: 'query' was not declared in this scope
         else return query(rson(rt), mid(l, r) + 1, r, rank - sum[lson(rt)]);
                                                                           ^
0_0_33226813_25867.cpp: In function 'void solve()':
0_0_33226813_25867.cpp:191:27: error: 'struct tree_2' has no member named 'query'
                 info = at.query(1, 1, n, x);
                           ^
0_0_33226813_25867.cpp:200:29: error: 'struct tree_2' has no member named 'query'
                     p1 = at.query(1, 1, n, x + 1);
                             ^
0_0_33226813_25867.cpp:211:29: error: 'struct tree_2' has no member named 'query'
                     p1 = at.query(1, 1, n, x - 1);
                             ^
0_0_33226813_25867.cpp:222:29: error: 'struct tree_2' has no member named 'query'
                     p1 = at.query(1, 1, n, x - 1);
                             ^
0_0_33226813_25867.cpp:223:29: error: 'struct tree_2' has no member named 'query'
                     p2 = at.query(1, 1, n, x + 1);
                             ^


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-29 21:12:37, Gzip enabled