#include<iostream
#include<cmath
using namespace std;
int main()
{
doubleX,Y;
cin>>x;
if(x<-1)
y=cos(x)-1/(3x+2);
else
{
if(x<4)
y=1/(sprt(x+l)+sin(x));
else
y=sprt(x+3)+cos(x);
}
return0;
}
错误列表
lntelliSense: 未定义标识符 “sprt"
IntelliSense: 未定义标识符 “sprt"
是sqrt,不是sprt
函数名你写错了啊,开根号是sqrt函数