0_0_30757151_3910.cpp: In function 'int main()': 0_0_30757151_3910.cpp:142:60: error: invalid operands of types 'int' and 'LL [100007] {aka long long int [100007]}' to binary 'operator-' int rp=min(upper_bound(b+1,b+b_n+1,(p+mid)-b-1,(LL)b_n); ^