0_0_32232383_5163.cpp: In function 'int main()': 0_0_32232383_5163.cpp:145:44: error: too many arguments to function 'int query(int, int)' int pos = query(1,1,n,x); ^ 0_0_32232383_5163.cpp:90:5: note: declared here int query(int i,int v) ^