Which tc s are failing ? cant find

Sir the code is working fine against custom inputs , but 2/4 tc r failing. Am not able to find the error. Thank you

Code Link :-

The output for aabbaa should be a2b2a2

@Ishitagambhir ma’am can you please tell me how to know about these test cases?

@debojyoti.koley.dk keep counting the characters, if a diff character comes print the prev character and count, reset it to zero and keep doing this for the whole string

@Ishitagambhir ma’am am asking how to know about which tc are failing ? thank you

@debojyoti.koley.dk if you download the tc you will not get points for this problem. They are available in solution section

@Ishitagambhir thank you ma’am. Passed all test cases.
Code link :- https://ide.codingblocks.com/s/579336

@debojyoti.koley.dk kindly mark your 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.