0_0_30220352_29905.cpp: In function 'void build(long long int&, long long int, long long int)':
0_0_30220352_29905.cpp:27:23: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
build(tree[k].l,l,mid);
^
0_0_30220352_29905.cpp:18:6: note: in passing argument 1 of 'void build(long long int&, long long int, long long int)'
void build(ll &k,ll l,ll r)
^
0_0_30220352_29905.cpp:28:28: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
build(tree[k].r,mid+1,r);
^
0_0_30220352_29905.cpp:18:6: note: in passing argument 1 of 'void build(long long int&, long long int, long long int)'
void build(ll &k,ll l,ll r)
^
0_0_30220352_29905.cpp: In function 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)':
0_0_30220352_29905.cpp:42:38: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
change(tree[k].l,tree[q].l,l,r,x,mid);
^
0_0_30220352_29905.cpp:31:6: note: in passing argument 1 of 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)'
void change(ll &k,ll q,ll l,ll r,ll x,ll y)
^
0_0_30220352_29905.cpp:44:40: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
change(tree[k].r,tree[q].r,l,r,mid+1,y);
^
0_0_30220352_29905.cpp:31:6: note: in passing argument 1 of 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)'
void change(ll &k,ll q,ll l,ll r,ll x,ll y)
^
0_0_30220352_29905.cpp: In function 'int main()':
0_0_30220352_29905.cpp:70:15: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
build(root[0],1,n);
^
0_0_30220352_29905.cpp:18:6: note: in passing argument 1 of 'void build(long long int&, long long int, long long int)'
void build(ll &k,ll l,ll r)
^
0_0_30220352_29905.cpp:84:20: error: invalid initialization of reference of type 'long long int&' from expression of type 'int'
change(root[tag],root[tag- 1],l,r,1,n);
^
0_0_30220352_29905.cpp:31:6: note: in passing argument 1 of 'void change(long long int&, long long int, long long int, long long int, long long int, long long int)'
void change(ll &k,ll q,ll l,ll r,ll x,ll y)
^
|