M candidates take part in the elections On the day of the vote, N voters voiced their votes. Find out how many votes each candidate received.
Reformulation: A string with N elements is given. Find out how many times each element appears from 1 to M in the given string.
Input: number_of_elements number_of_candidates Enter elements Example: 4 4 Enter 1 2 3 2
Compile: g++ Numar_Voturi_v1.cpp -o Numar_Voturi_v1
Run: ./Numar_Voturi_v1