Test case 2 failing in Highest frequency (Hashing)

Highest frequency(Hashing). Only test case 2 is failing.
my code:
https://ide.codingblocks.com/s/62829

https://ide.codingblocks.com/s/62832 @anant.mathur007 you can refer this i have corrected your code

Can you explain the meaning of auto i : m in for loop?

@anant.mathur007 hi anant the auto is special kind of data type which is automatically type cast data which is store in hashmap if hashmap contain address so it will type cast into address or it change accordingly data store in hashmap in this senario auto is typecast with int
and auto i:m mean every pair of i contain in hashmap m basically you’re making pair of <int , int> so i is variable which is accessing the value contain in hashmap pair

Ok, thank you for your help.