Main.cc: In function ‘int main()’:
Main.cc:17:18: error: request for member ‘count’ in ‘mp.std::map::operator[](b)’, which is of non-class type ‘std::map::mapped_type {aka int}’
if(mp[b].count()) cout << mp[b] << endl ;
^~~~~