All Test cases are not passed. could you please tell me why?
int main()
{
signed long int a,b,c,d,x1,x2;
cin>>a>>b>>c;
d = sqrt(b*b-4*a*c);
x1 = (-b+d)/(2*a);
x2 = (-b-d)/(2*a);
if(d>0)
{
cout<<"Real and Distinct"<<endl;
if(x1<x2)
{
cout<<x1<<" "<<x2;
}
else
{
cout<<x2<<" "<<x1;
}
}
else if(d=0)
{
cout<<"Real and Equal"<<endl;
if(x1<x2)
{
cout<<x1<<" "<<x2;
}
else
{
cout<<x2<<" "<<x1;
}
}
else
{
cout<<"Imaginary"<<endl;
}
return 0;
}