0_0_33900582_6778.cpp: In function 'void change(int&, int, int, int, int)':
0_0_33900582_6778.cpp:13:15: error: 'mid' was not declared in this scope
if(pos <= mid) change(L[res], l, mid, pos, w);
^
0_0_33900582_6778.cpp: In function 'void add(int, int)':
0_0_33900582_6778.cpp:18:47: error: 'lower_bound' was not declared in this scope
int x = lower_bound(b+1, b+1+num, arr[ans]) - b;
^
0_0_33900582_6778.cpp: In function 'int getpos(int, int, int)':
0_0_33900582_6778.cpp:32:26: error: 'mid' was not declared in this scope
return getpos(l, mid, k);
^
0_0_33900582_6778.cpp:37:23: error: 'mid' was not declared in this scope
return getpos(mid+1, r, k - sum);
^
0_0_33900582_6778.cpp: In function 'int main()':
0_0_33900582_6778.cpp:42:12: error: 'rd' was not declared in this scope
n = rd(), m = rd();
^
0_0_33900582_6778.cpp:43:9: error: 'i' was not declared in this scope
FOR(i, 1, n) b[++num] = arr[i] = rd();
^
0_0_33900582_6778.cpp:43:16: error: 'FOR' was not declared in this scope
FOR(i, 1, n) b[++num] = arr[i] = rd();
^
0_0_33900582_6778.cpp:49:22: error: 'sort' was not declared in this scope
sort(b+1, b+1+num);
^
0_0_33900582_6778.cpp:50:30: error: 'unique' was not declared in this scope
num = unique(b+1, b+1+num) - b - 1;
^
|