PLEASE check my code

i wrote a code as per the requirement and it even gives me all the result of the test cases, but here it says it is failing test cases.
my code is like this as below.
only the body part
{
cout<<“revising quadratic equations\n”;
cout<<“the general quadratic equation is ax^2+bx+c=0\n enter the values of a,b,c”<<endl;
int a,b,c;
float x,x1,x2,d;
cin>>a>>b>>c;
if(-100<=a,b,c<=100)
{
x1= (-b+sqrt(bb-4ac))/2a;
x2= (-b-sqrt(bb-4ac))/2a;
if (bb-4ac==0)
{cout<<“equal roots”<<endl;
cout<<x1<<"\t"<<x2;}
else if(b
b-4ac>0)
{
cout<<“real and distinct”<<endl;
if(x2<x1)
{
cout<<x2<<"\t"<<x1;
}
else
{
cout<<x1<<"\t"<<x2;
}
}
else if(bb-4a*c<0)
{cout<<“imaginary roots”;}
}
return 0;
}

Sir, even went through all the test cases, and my answer matched the output, than also my code was not submitted, and it says that i failed the test cases

hi @siddharthkumaree21b954_52c884d346b69187 updated and commented your mistakes

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.