Cant pass test case

cannot pass test case helpp

hi @uditmudgal07_2f40cca755bd8bd2

#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;
}