Why this code shown test error?

#include
#include
using namespace std;
int main() {
int a,b,c;
int x1,x2;
cin>>a>>b>>c;
float d;
d=sqrt((bb)-(4ac));
if(d>0){
cout<<“Real and Distinct”<<endl;
x1=(-b+d)/(2
a);
x2=(-b-d)/(2a);
if(x1>x2){
cout<<x2<<" “<<x1;
}
else{
cout<<x1<<” "<<x2;
}
}
if(d==0){
cout<<“Real and Equal”<<endl;
cout<<-b/(2
a);
}
if(d<0){
cout<<“Roots are imaginary”;
}

return 0;

}

Just need to print Imaginary @ansarirehaan2925_b13ac9c75c4c49d0

i have to change in cout for d=0 to imaginary

Yeah try that @ansarirehaan2925_b13ac9c75c4c49d0

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.