my code is not passing all the testcases
#include
#include<math.h>
using namespace std;
int main() {
float a,b,c,d,x1,x2;
cin>>a>>b>>c;
d=(pow(b,2))-(4ac);
if(d>0){
x1=(-b-pow(d,0.5))/(2*a);
x2=(-b+pow(d,0.5))/(2*a);
cout<<"real and distinct"<<endl<<x1<<" "<<x2;
}
else if(d==0){
x2=(-b)/(2*a);
x1=(-b)/(2*a);
cout<<"real and equal"<<endl<<x2;
}
else if(d<0){
cout<<"imaginary";
}
return 0;
}