Test Cases Failed

My code wasn’t accepted and I was told that there was a test case that failed. After, unlocking test cases, I found that there is no single test case that fails.

hi @nakshjain
try this–>

#include<iostream>
#include<cmath>
using namespace std;

int main() {
	int a,b,c,x1,x2;
	double d;
	cin>>a>>b>>c;
	d=b*b-4*a*c;

	if(d>0) {
          x1=((-b)+sqrt(b*b-4*a*c))/2*a;
		  x2=((-b)-sqrt(b*b-4*a*c))/2*a;
		  cout<<"Real and Distinct"<<endl;
		  cout<<min(x1,x2)<<" "<<max(x1,x2)<<" ";
	}
    else if(d==0){
		x1=(-b/2*a);
	    x2 = x1;
		cout<<"Real and Equal"<<endl;
		cout<<x1<<" "<<x2;
	}
	else{
		cout<<"Imaginary";
	}
	return 0;
}

hey, if hope your doubt is clear, kindly mark it as resolved:)

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.