#include
#include
using namespace std;
int main(){
float a,b,c;
cin>>a>>b>>c;
float discriminant;
float root1 , root2;
discriminant = bb - 4ac;
root1 = (-b + sqrt(discriminant))/(2a);
root2 = (-b - sqrt(discriminant))/(2*a);
if(discriminant>0){
cout<<“Real and distinct”<<endl;
cout<<root1<<" “<<root2<<endl;
}
if(discriminant==0){
cout<<“Real and equal”<<endl;
cout<<root1<<” "<<root2<<endl;
}
if (discriminant<0){
cout<<“Imaginary”<<endl;
}
return 0;
}
But the report was that it failed in one test case. May I know in which case it is ?