Code runnning but not executing

I was solving the revising Quadratic eqns problem.
the code run perfectly in eclipse
the code run perfectly in the CB ide.
but while executing/submiting, it is showing this.
Output :

TESTCASE # 1 : wrong-answer (Time: 0.06 s)
TESTCASE # 2 : wrong-answer (Time: 0.05 s)
TESTCASE # 3 : wrong-answer (Time: 0.05 s)

Hi pulkit please share your code on https://ide.codingblocks.com/ and save it.
then provide the link.
thankyou.

i think, now, you’ll be able to see my code in IDE.

where is the link of the code?

Hi pulkit,You need to print roots as well.
Morover,the output should be exactly same as the one mentioned in sample output.
So dont print any statement like “enter a” “enter b” etc…

See I did the above changes, but still in trouble

Hi Pulkit,
Please make the real and distinct look alike as given in the sample Output.
that is R of real should be capital and D of distinct.

Man, I think something else might be the problem.
Using capital letters instead of small ones doesnt works out here.

@pulkitmidha28
Small mistakes which I corrected in this code:–>https://ide.codingblocks.com/s/105203

  1. You dont need to Print anything when the Roots are Imaginary.
    2.When D>0 Print Greater root first and then smaller one.
    I hope this served your purpose.Thankyou
    and Please mark the doubt as resolved or if still doubt persists revert back here.
1 Like

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.