#include <iostream>
#include <map>
#include <string>
int main()
{
std::multimap<int, std::string> mm;
mm = { { 3, "c++" },
{ 1, "c" },
{ 3, "c#" },
{ 4, "java" },
{ 7, "python" } };
for (auto elem : mm) {
std::cout << elem.first << " " << elem.second << std::endl;
}
std::cout << std::endl;
return 0;
}
/*
run:
1 c
3 c++
3 c#
4 java
7 python
*/