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_33140724_31699.cpp: In function 'bool balance(int)':
0_0_33140724_31699.cpp:88:33: error: 'ls' was not declared in this scope
 bool balance(int x){return rsiz[ls]<=rsiz[x]*alpha&&rsiz[rs]<=rsiz[x]*alpha;}
                                 ^
0_0_33140724_31699.cpp:88:58: error: 'rs' was not declared in this scope
 bool balance(int x){return rsiz[ls]<=rsiz[x]*alpha&&rsiz[rs]<=rsiz[x]*alpha;}
                                                          ^
0_0_33140724_31699.cpp: In function 'int newnode()':
0_0_33140724_31699.cpp:92:5: error: 'ls' was not declared in this scope
     ls=rs=fa[x]=cmpd[x]=rsiz[x]=0;
     ^
0_0_33140724_31699.cpp:92:8: error: 'rs' was not declared in this scope
     ls=rs=fa[x]=cmpd[x]=rsiz[x]=0;
        ^
0_0_33140724_31699.cpp: In function 'void pushup(int)':
0_0_33140724_31699.cpp:104:18: error: 'ls' was not declared in this scope
     rsiz[x]=rsiz[ls]+rsiz[rs]+bool(siz[x]);
                  ^
0_0_33140724_31699.cpp:104:27: error: 'rs' was not declared in this scope
     rsiz[x]=rsiz[ls]+rsiz[rs]+bool(siz[x]);
                           ^
0_0_33140724_31699.cpp: In function 'int build(int, int, int, point*)':
0_0_33140724_31699.cpp:124:5: error: 'ls' was not declared in this scope
     ls=build(l,mid-1,x,t);
     ^
0_0_33140724_31699.cpp:125:5: error: 'rs' was not declared in this scope
     rs=build(mid+1,r,x,t);
     ^
0_0_33140724_31699.cpp: In function 'void query(int, point)':
0_0_33140724_31699.cpp:149:13: error: 'ls' was not declared in this scope
     LL ld=f(ls,q),rd=f(rs,q),d=dis(q,p[x]);
             ^
0_0_33140724_31699.cpp:151:8: error: 'd' was not declared in this scope
     if(d<ans)ans=d,id=q.id;
        ^
0_0_33140724_31699.cpp:154:11: error: 'rd' was not declared in this scope
     if(ld<rd)
           ^
0_0_33140724_31699.cpp:157:26: error: 'rs' was not declared in this scope
         if(rd<=ans)query(rs,q);
                          ^
0_0_33140724_31699.cpp:161:26: error: 'rs' was not declared in this scope
         if(rd<=ans)query(rs,q);
                          ^
0_0_33140724_31699.cpp: In function 'int work()':
0_0_33140724_31699.cpp:194:32: error: 'insert' was not declared in this scope
                 insert(root,0,t);
                                ^


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-10-06 13:34:25, Gzip enabled