Write a c++
program that reads a list of words. The program then outputs those words and their frequencies. The input begins with an integer indicating the number of words that follow.
Ex: If the input is:
5 hey hi Mark hi mark
the output is:
hey 1 hi 2 Mark 1 hi 2 mark 1
Your program must define and use two functions:
int main()
int getFrequencyOfWord(vector words, string current_word)
Hint: use two parallel vectors, one for names and one for the frequency of each name.
569896.972096.qx3zqy7