/in/foo.cc: In function 'int erfen(double, double)':
/in/foo.cc:10:41: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
int s=std::lower_bound(xxx+1,xxx+n+1,l)-x;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc:11:44: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
int t=std::upper_bound(xxx+1,xxx+n+1,r)-x;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc: In function 'int refen(double, double)':
/in/foo.cc:15:41: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
int s=std::lower_bound(yyy+1,yyy+n+1,l)-y;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc:16:44: error: invalid operands of types 'int*' and 'double' to binary 'operator-'
int t=std::upper_bound(yyy+1,yyy+n+1,r)-y;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:39: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'int*' [-Wformat=]
scanf("%lf%lf",&xxx[i],&yyy[i]);
^
/in/foo.cc:23:39: warning: format '%lf' expects argument of type 'double*', but argument 3 has type 'int*' [-Wformat=]