Code not passing all test cases, despite it being absolutely correct

when i downloaded the test cases and made the first test case(which was repeatedly failing) my custom input, i got the correct answer. why was the first test case failing then?
here is the code:
#include
#include<math.h>
using namespace std;

int main()
{
double a,b,c,d,x1,x2;
cin>>a>>b>>c;
d=(bb-4ac);
if(d>0)
{
cout<<“Real and Distinct”<<endl;
x1=(-b+sqrt(b
b-4ac))/(2a);
x2=(-b-sqrt(b
b-4ac))/(2a);
cout<<x1<<" "<<x2;
}
if(d==0)
{
cout<<“Real and Equal”<<endl;
x1=x2=-b/(2
a);
cout<<x1<<" "<<x2;
}
if(d<0)
cout<<“Imaginary”;
}

@sans_sehgal hey copy your code on ide and paste it here you can save your code in this link cb.lk/ide this will generate a saved url that url you have to post it here

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.