0_0_26835259_6958.cpp: In function 'int query(int, int, int)':
0_0_26835259_6958.cpp:54:19: error: request for member 'r' in 'lpos[o]', which is of non-class type 'int'
int l = lpos[o]. r = rpos[o], maxx = 0;
^
0_0_26835259_6958.cpp:55:18: error: 'r' was not declared in this scope
if (l >= ql and r <= qr) {
^
0_0_26835259_6958.cpp:58:17: error: 'r' was not declared in this scope
int mid = (l + r) >> 1;
^
0_0_26835259_6958.cpp:60:3: error: 'maxx' was not declared in this scope
maxx = max (maxx, query (o << 1, ql, qr));
^
0_0_26835259_6958.cpp:62:3: error: 'maxx' was not declared in this scope
maxx = max (maxx, query (o << 1 | 1, ql, qr));
^
0_0_26835259_6958.cpp:63:9: error: 'maxx' was not declared in this scope
return maxx;
^
0_0_26835259_6958.cpp: In function 'int main()':
0_0_26835259_6958.cpp:82:41: error: too many arguments to function 'int query(int, int, int)'
printf ("%d\n", query (l, r, 1, n, 1));
^
0_0_26835259_6958.cpp:53:12: note: declared here
inline int query (int o, int ql, int qr) {
^
|