[email protected]

#include<bits/stdc++.h>
using namespace std;
int main() {
long a=0,b=0,c=0;
long x=0,y=0;
cin>>a>>b>>c;
long root = bb -4ac;
if(root>0)
{
cout<<“Real and Distinct”<<endl;
x = (-b + sqrt(root))/2
a;
y = (-b - sqrt(root))/2*a;
cout<<x<<" "<<y<<endl;

}
else if(root==0)
{
    cout<<"Real and Equal"<<endl;
    x = (-b)/2*a;
    cout<<x<<" "<<x<<endl;
}
else 
{
    cout<<"Imaginary";
}
return 0;

}

unable to pass one test case …will you please help me out

Plz send your code by saving on ide only…

#include<bits/stdc++.h>
using namespace std;
int main() {
long a=0,b=0,c=0;
long x=0,y=0;
cin>>a>>b>>c;
long root = bb -4ac;
if(root>0)
{
cout<<“Real and Distinct”<<endl;
x = (-b + sqrt(root))/2
a;
y = (-b - sqrt(root))/2*a;
cout<<x<<" "<<y<<endl;

}
else if(root==0)
{
    cout<<"Real and Equal"<<endl;
    x = (-b)/2*a;
    cout<<x<<" "<<x<<endl;
}
else 
{
    cout<<"Imaginary";
}
return 0;

}

There are few errors in your code, kindly rectify them :
use long a,b,c;, and not initialise them to 0
use * for multiplication ::: long root = bb -4a*c;

I have edited your code, refer to these changes,