0_0_35870131_22004.cpp: In function 'void qryr(int, int, int, int, int, int&)':
0_0_35870131_22004.cpp:48:31: error: 'b' was not declared in this scope
while(k>0&&cct>0) ans[++ct]=b[l]-b[p],--k,--cct;//,printf("r:%d\n",l);
^
0_0_35870131_22004.cpp: In function 'void qryl(int, int, int, int, int, int&)':
0_0_35870131_22004.cpp:61:31: error: 'b' was not declared in this scope
while(k>0&&cct>0) ans[++ct]=b[p+1]-b[l],--k,--cct;//,printf("l:%d\n",l);
^
0_0_35870131_22004.cpp: In function 'void work()':
0_0_35870131_22004.cpp:79:29: error: 'a' was not declared in this scope
for(int i=1;i<=n;i++) read(a[i]),b[i]=a[i];
^
0_0_35870131_22004.cpp:79:35: error: 'b' was not declared in this scope
for(int i=1;i<=n;i++) read(a[i]),b[i]=a[i];
^
0_0_35870131_22004.cpp:80:12: error: 'b' was not declared in this scope
std::sort(b+1,b+1+n);
^
0_0_35870131_22004.cpp:83:62: error: 'a' was not declared in this scope
rebuild(root[i],root[i-1],1,n_,std::lower_bound(b+1,b+1+n_,a[i])-b);
^
|