0_0_36347931_27387.cpp: In function 'int query0(int, int, int, int&)':
0_0_36347931_27387.cpp:78:27: error: 'ql' was not declared in this scope
int t=query0(lc[x],l,mid,ql,y);
^
0_0_36347931_27387.cpp: In function 'int main()':
0_0_36347931_27387.cpp:117:39: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
int t=query0(rt[x],1,10000000,1,_=k);
^
0_0_36347931_27387.cpp:70:5: note: in passing argument 4 of 'int query0(int, int, int, int&)'
int query0(int x,int l,int r,int &y)
^
0_0_36347931_27387.cpp:118:45: error: too few arguments to function 'long long int querys(int, int, int, int, int)'
ans=((ans>p)+1)*querys(rt[x],1,10000000,t);
^
0_0_36347931_27387.cpp:82:11: note: declared here
long long querys(int x,int l,int r,int ql,int qr)
^
|