Program for quadratic Eqautions not working

#include
using namespace std;
int main() {
int a,b,c,
double r1,r2;
cin>>a;
cin>>b;
cin>>c;
int d = bb-4ac;
int u=sqrt(d);
if(d>0) {
r1=(b+u)/2
a;
r2=(b-u)/2*a;
cout<<r1<<endl;
cout<<r2<<endl;
cout<<“Real and distinct”;
}
else {
cout<<“Imaginary”;
}
return 0;
}

@Abhishek4799
Hey abhishek your code logic is depends upon two factor real and distinct and imaginary but there is one more case Real and equal.