Revising quadratic equation

#include
#include
using namespace std;
int main(){
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
int d=sqrt(bb-4ac);
int x=(-b+d)/2
a;
int y=(-b-d)/2*a;
if(d==0){
cout<<“real and equal”<<endl;
cout<<x<<" "<<y;
}
else if(d>0)
{
cout<<“real and distinct”<<endl;

			if(x<y)
			cout<<x<<" "<<y;
			else
			cout<<y<<" "<<x;
		 	
		   }
	   else
		    	{
		    		cout<<"imaginary roots";
		    		
				}
	}

it is passing only 2 test cases. I’m not able to find the error