Fails one testcase

Can someone please help me to understand why one test case fails? what could be one of the case scenarios i am not considering? I have submitted the code once please check?

hello @shibangi

if(vec[i].first>ans.second){
   		ans = vec[i]; 
   		count++;
   	}

use >= and then submit

i did tht in my second submission gave me only 50 :frowning:

pls save ur updated code here->


and share its link with me

here is my code: https://ide.codingblocks.com/s/437673

@shibangi
check now->

u have to print output for t cases, but u were printing only for one

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.