0_0_36456661_27152.cpp:11:23: error: expected identifier before ',' token
void add1(int l,int r,,int x,int rt)
^
0_0_36456661_27152.cpp: In function 'void add1(int, int, int, int, int)':
0_0_36456661_27152.cpp:18:28: error: 'p' was not declared in this scope
if(x <= mid) add1(l,mid,x,p<<1);
^
0_0_36456661_27152.cpp:19:23: error: 'p' was not declared in this scope
else add1(mid+1,r,x,(p<<1)+1);
^
0_0_36456661_27152.cpp:20:6: error: 'p' was not declared in this scope
tre[p] = tre[p<<1]+tre[(p<<1)+1];
^
0_0_36456661_27152.cpp: In function 'int main()':
0_0_36456661_27152.cpp:42:21: error: too few arguments to function 'void add1(int, int, int, int, int)'
add1(1,a[i]+1,1,n);
^
0_0_36456661_27152.cpp:11:6: note: declared here
void add1(int l,int r,,int x,int rt)
^
|