Negative case meaning

Dang! You couldn’t score a perfect 100 because you failed one or more testcases. This means that your program didn’t account for all input cases (did you account for negative numbers, for example?).

can anyone explain me the meaning of negative case?

hi @prakhargupta1992


I have corrected ur code… its working fine and should pass all test cases…

I cannot see the updated code

What mistake i was making?

u were not taking input of numbers only…

cin >> num1 >> num2 >> num3;

this was missing…
and

if(num1 < num2 || num2 < num3 || num3 < num1){
	cout << -1;
 }

and this is also wrong… just remove it…

In every coming question is it required to take input?

Yes yes u will have to take input

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.