0_0_34817052_26530.cpp: In function 'int query(int)': 0_0_34817052_26530.cpp:31:23: error: invalid types '<unresolved overloaded function type>[int]' for array subscript for (int i = log[n]+1; ~i; i --) ^