C++的函数设计问题

-


#include
using namespace std;
int main()
{
float a, b, c;
float x1, x2,disc;
cout << "请分别输入a,b,c的值:";
cin >> a >> b >> c;
disc = bb - 4 * ac;
if (disc > 0)
{
x1 = (-b + sqrt(disc)) / (2 * a);
x2 = (-b - sqrt(disc)) / (2 * a);
cout << "root:" << x1 << x2;
return 0;
}
else if (disc = 0)
{
x1 = x2 = (-b) / (2 * a);
cout << "root:" << x1 << x2;
return 0;
}
else
{
cout << "无解" << endl;
}
}

请问哪里有问题吗,改不出来了😭😭
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/763576317766176.jpg "#left")

注意第九行,C语言里相乘必须写成bb,或者ac,不能直接bb和ac