while (!datal. eof 0)\r(\rdatal>>n;\rdatal>>exp;\rm.insert(pair<int ,string>(n, exp));\r)\rmultimap<int, string>::iterator it,jt,temp;\rfor(it=m. begin() ; it!=m. end(); it++ )\r(\rjt=it;\rfor(jt++ ; jt !=m. endO ;)\r(\rif((*it). first==(*jt). first )\r(\rtemp=jt;\rjt++;\rm. erase (temp);\r)\relse jt++;\r//*********************** WX\rfor (it=m. begin () ; it!=m. end() ; it++ )\r(\rjt=temp=it;\rfor (jt++ ; jt !=m. end() ; jt++)\r(\rif ((*jt). first<(*temp). first )\r(\rtemp=jt;\r)\rif (temp!=it)\rswap (temp, it);.\rfor(it=m. beginO ; it!=m. end(); it++ )\r(\rdata2<< (*it). f ir s t7 (*it). second<<endl;\rcout7 (*it) first<< (*it). second7endl;\r)\rdatal. close ();\rdata2. close ();\rreturn 0;