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_33338997_6777.cpp: In function 'void update(int&, int, int, int, int)':
0_0_33338997_6777.cpp:3:26: error: 'newnode' was not declared in this scope
         if(!rt)newnode(rt); s[rt]+=num; if(l==r)return;
                          ^
0_0_33338997_6777.cpp:3:29: error: 's' was not declared in this scope
         if(!rt)newnode(rt); s[rt]+=num; if(l==r)return;
                             ^
0_0_33338997_6777.cpp:4:17: error: 'mid' was not declared in this scope
         if(val<=mid)
                 ^
0_0_33338997_6777.cpp:6:20: error: 'ls' was not declared in this scope
             update(ls[rt],l,mid,val,num);
                    ^
0_0_33338997_6777.cpp:10:20: error: 'rs' was not declared in this scope
             update(rs[rt],mid+1,r,val,num);
                    ^


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-05 10:13:23, Gzip enabled