sir, why my code is giving wrong answer and only one correct answer?
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const argv[])
{
int a,b,c;
cin>>a>>b>>c;
int ans= (bb)-(4ac);
int d=pow(ans,0.5);
if(d>0)
{
cout<<“Real and Distinct”<<endl;
int x= (d-b)/2;
int y=-(d+b)/2;
cout<<x<<" “<<y<<endl;
}
else if (d==0)
{
cout<<“Real and Equal”<<endl;
int x=(d-b)/2;
cout<<x<<” "<<x<<endl;
}
else if(d<0)
cout<<“Imaginary roots”<<endl;
return 0;
}