你的程序有多个错,改好的(已标记错误原因)#include <iostream>using namespace std;#include <cmath>#include <math.h>#include <stdio.h>#define PI 3.1415926class volue_ep1{  float a,b,c,x;   //分别表示椭球三个方向半轴长度  int n;     //x方向等分数public: //以下为类中的函数  volue_ep1(float a1,float b1,float c1,int n1) //构造函数, n1为等分数  ////错,构造函数要与类同名  {    a=a1;    b=b1;    c=c1;    n=n1;  } ;  float v()           //求椭球体积函数,返回体积值  {    float s;    for(x=0; x<a; x+=a/n) {      float y_axis=sqrt(pow(b,2)-pow(b*x/a,2));      float z_axis=sqrt(pow(c,2)-pow(c*x/a,2));      s+=PI*y_axis*z_axis;    }    return s*a/n;  }};  //完成类的定义int main(){  float a1,b1,c1;  int n1;  cout<<"请输入椭球的a,b,c"<<endl;  cin>>a1>>b1>>c1>>n1;  volue_ep1 r1( a1, b1, c1,n1); //构造错  cout<<"编程求出的体积为"<<r1.v()<<'\n'; //错,v是函数  int V=4*PI*a1*b1*c1/3;  cout<<"公式求出的体积为"<<V<<'\n';  int fabs=(V-r1.v())/V;      //错误部分,v是函数  cout<<"误差率为"<<fabs<<endl;  return 0;}