Sir my code is working finejust now after compailing my code its gives me write answer but after submittig my code its gives me error

Hello sir
I have doubt
#include
#include
using namespace std;
int main()
{
int a,b,c;
float r1,r2,d,D;
cout<<“Enter the values of a,b and c”;
cin>>a>>b>>c;
D=(bb-4ac);
d=2
a;
r1=(-b+sqrt(D))/d;
r2=(-b-sqrt(D))/d;
if(D>0)
{
r1=(-b+sqrt(D))/d;
r2=(-b-sqrt(D))/d;
cout<<“The roots are real and different”<<endl;
if(r1>r2)
{
cout<<r1<<endl;
}
else cout<<r2;

}
else if(D==0)
{
    
    r1=-b/d;
    r2=-b/d;
  cout<<"The roots are real and same"<<r1<<endl<<r2<<endl;
}
else if (D<0)

    {cout<<"The roots are imaginary";}

}

hi @gamingzone123a_2a8bc985f4c429d5,u r printing wrong msg read the question

@gamingzone123a_2a8bc985f4c429d5 i shared a code na 2 days before check it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.