C语言编程报错解答,二分法编程

这段代码报错  [Error] expected unqualified-id before '{' token

把void BM(double a,double b,double epsl,double eps2);的分号去掉也没用出现两个新错误

C:\Users\Administrator\Documents\未命名4.cpp    In function 'void BM(double, double, double, double)':

 C:\Users\Administrator\Documents\未命名4.cpp    [Error] 'eps1' was not declared in this scope

有没有大神知道的,求解答

#include<stdio.h>
#include<math.h>
#define N 10000
double A,B,C;
double f(double x)
{
    return(A*x*x*x*x+B*x*x+C);
}
void BM(double a,double b,double epsl,double eps2);{
    int k;
    double x,xe;
    double valuea=f(a);
    double valueb=f(b);
    if(valuea>0 && valueb>0|| valuea<0 && valueb <0) return;
    printf("Finding root in the range:[%.31f,%.31f]\n",a,b);
    for(k=1;k<=N;k++){
        x=(a+b)/2;
        xe=(b-a)/2;
        if(fabs(xe)<eps2 || fabs(f(x))<eps1){
            printf("The x value is:%g\n",x);
            printf("f(x)=%g\n\n",f(x));
            return;
        }
        if(f(a)*f(x)<0) b=x;
        else a=x;
    }
    printf("No convergence!\n");
}

int main()
{
    double a, b,eps1,eps2,step,start;
    printf("Please input A,B,C:\n");
    scanf("%1f %1f %1f",&A,&B,&C);
    printf("Please input a,b,step,eps1,eps2:\n");
    scanf("%1f %1f %1f %1f %1f %1f",&a,&b,&step,&eps1,&eps2);
    for(start=a;(start+step)<=b;start+=step)
    {
        double left=start;
        double right=start+step;
        BM(left,right,eps1,eps2);
    }
    
    return 0;    
}

  1. 必须去掉分号
  2. 你好像没给出完整的新的报错信息
  3. 我猜错误是esp1和espl中字母“l”和数字1弄混了导致的

感谢,解决了