Https://ide.codingblocks.com/s/481784

at line no 42 i have mentioned by doubt

this is how you have to print that

 unordered_map<string,list<pair<string,int>>>:: iterator it;

        for(it=mp.begin();it!=mp.end();it++){
        	cout<<it->first<<" --> ";

        	list<pair<string,int>>:: iterator ele;
        	for(ele=mp[it->first].begin();ele!=mp[it->first].end();ele++){
        		cout<<ele->first<<","<<ele->second<<"\t";
        	}
        	cout<<endl;
        }

Complete code below

Modified Code