Highest frequency( Hashing )

Getting Run Error in 4 out of 6 test cases. I am not able to find my fault.
Link: https://ide.codingblocks.com/s/253636

*3 out of 5 test cases

@Shreyans_Jain i’d suggest you to use the inbuilt data structure for hashing, unordered_map. You can find its documentation here http://www.cplusplus.com/reference/unordered_map/unordered_map/

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.