0_0_26112576_18453.cpp: In function 'int main()': 0_0_26112576_18453.cpp:47:40: error: 'all' was not declared in this scope p[i].y=lower_bound(a+1,a+1+all,p[i].y)-a; ^