What am i missing?

Please tell me if i am missing something in the question.
I am able to get 2/3 test cases correct.
why not the 3rd one??

#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int disc = (bb) - (4ac); int root1 = (-b + sqrt(disc))/2a; int root2 = (-b - sqrt(disc))/2*a; int q,w; if(disc>0) { cout<<“Real and Distinct”<<endl; if(root1>root2) { cout<<root2<<" “<<root1<<endl; } else { cout<<root1<<” “<<root2<<endl; } } else if(disc==0) { cout<<“Real and Distinct”<<endl; cout<<root1<<” "<<root1<<endl; } else { cout<<“Imaginary”<<endl; } }

check now->

ohh shit my bad. Thanks a lot

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.