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_25661521_9096.cpp: In member function 'long long int treap::find(long long int, long long int)':
0_0_25661521_9096.cpp:129:19: error: 'struct trnode' has no member named 'lch'
   if (p==tr[tr[x].lch].sz+1) return x; 
                   ^
0_0_25661521_9096.cpp:130:18: error: 'struct trnode' has no member named 'lch'
   if (p>tr[tr[x].lch].sz+1) return find(p-tr[tr[x].lch].sz-1,tr[x].rch); 
                  ^
0_0_25661521_9096.cpp:130:52: error: 'struct trnode' has no member named 'lch'
   if (p>tr[tr[x].lch].sz+1) return find(p-tr[tr[x].lch].sz-1,tr[x].rch); 
                                                    ^
0_0_25661521_9096.cpp:130:68: error: 'struct trnode' has no member named 'rch'
   if (p>tr[tr[x].lch].sz+1) return find(p-tr[tr[x].lch].sz-1,tr[x].rch); 
                                                                    ^
0_0_25661521_9096.cpp:131:29: error: 'struct trnode' has no member named 'lch'
    else return find(p,tr[x].lch); 
                             ^
0_0_25661521_9096.cpp: In function 'int main()':
0_0_25661521_9096.cpp:142:25: error: cannot convert 'treap' to 'void*' for argument '1' to 'void* memset(void*, int, size_t)'
   memset(tr,0,sizeof(tr));
                         ^
0_0_25661521_9096.cpp:147:3: error: expected '}' at end of input
   {
   ^
0_0_25661521_9096.cpp:147:3: error: expected '}' at end of input
0_0_25661521_9096.cpp:147:3: error: expected '}' at end of input


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-23 01:50:34, Gzip enabled