#include <iostream>
#include <map>
#include <cstddef>
using namespace std;
int main()
{
multimap<size_t, size_t> mm;
for(size_t i=1; i!=10; ++i)
mm[i]=i*i;
for(map<size_t, size_t>::reverse_iterator rit=mm.rbegin();
rit != mm.rend(); ++rit)
cout << rit->second << ' ';
}
Login in to like
Login in to comment