Only 1 test case passed

please review my code

code: https://ide.codingblocks.com/s/212828

@Chhayansh Please make this change in your code.

cout<<"-1 -1"<<endl;

please tell the necessary changes

@Chhayansh I already told you. You weren’t using endl in your code after printing ‘-1 -1’

@Chhayansh If you don’t have any further queries please mark the doubt as resolved.

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.