My code not satisfying all testcases i am not getting

#include
#include
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
int d;
d = ((pow(b,2))-4ac);
if(d>0)
cout<<“Real and distinct”<<endl;
else if(d==0)
cout<<“real and equal”<<endl;
else
cout<<“Imaginary”<<endl;
int r,t;
if(d>=0)
{
r=(-b+sqrt(d))/2a;
t=(-b-sqrt(d))/2
a;
cout<<r<<t<<endl;
}

}

Hello @rakesh800650,

The way you have shared your code is introducing many syntax errors to it.
Rather, share it using online Coding Blocks IDE.
STEPS:

  1. Paste it at: https://ide.codingblocks.com/
  2. Save it there.
  3. Share the URL generated.

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.