/in/foo.cc: In function 'void search1(float, float)':
/in/foo.cc:11:29: error: cannot convert 'float*' to 'float' in assignment
  o=upper_bound(x+1,x+1+n,o+p);
                             ^
/in/foo.cc:12:29: error: cannot convert 'float*' to 'float' in assignment
  p=lower_bound(x+1,x+1+n,o-p);
                             ^
/in/foo.cc: In function 'void search2(float, float)':
/in/foo.cc:19:2: error: 'o' was not declared in this scope
  o=upper_bound(y+1,y+1+n,o+p);
  ^
/in/foo.cc:19:28: error: 'p' was not declared in this scope
  o=upper_bound(y+1,y+1+n,o+p);
                            ^
/in/foo.cc:20:30: error: expected primary-expression before ')' token
  p=lower_bound(y+1,y+1+n,o-p;)
                              ^