HELP. Find the Max duplicate string in a map

Find the Max duplicate string in a map?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <map>
#include <utility>

using namespace std;

int main()
{
    int i;
    map<int, string> empleado;
    empleado[1] = "1/2";
    empleado[2] = "1/4";
    empleado[3] = "1/2";
    empleado[4] = "1/2";
    empleado[9] = "1/4";
}

Solution is max element repeat in the map is: 3 ... ????????
Last edited on
Topic archived. No new replies allowed.