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);
^
|