2 test cases getting failed

my code is https://ide.codingblocks.com/s/361486
for this 2 test cases are getting failed, please help me

hello @MohdAfzal
i checked ur code it is correct.
once try vector in place of map