One test case failed. Where is mistake?

#include
#include
using namespace std;
int main() {
int a,b,c;
float res,root1,root2,x;
cin>>a>>b>>c;
res=bb-4ac;
if(res==0){
cout<<“Real and Equal”<<endl;
root1=(-b)/(2.0
a);
cout<<root1<<" “<<root1<<endl;
}
else if(res>0){
cout<<“Real and Distinct”<<endl;
x=sqrt(res);
root1=(-b-x)/(2.0a);
root2=(-b+x)/(2.0
a);
if(root1<root2)
cout<<root1<<” “<<root2<<endl;
else
cout<<root2<<” "<<root1<<endl;
}
else{
cout<<“Imaginary”<<endl;
root1=(-b)/(2.0*a);
cout<<root1<<endl;

}
return 0;

}

@mb129162 please save your code on ide.codingblocks.com and share the link. Anyway, you dont have to print the roots if they are imaginary.

@mb129162 as I already said, you dont have to print the value of the roots if they are imaginary.