Random Name Program

Hi there,
I'm VERY new to C++ so bear with me on this.
I'm trying to write a program that asks the user for 5 friends names, and the program will randomly select which one to text. The problem occurs when I call the "getRandomName" function on line 33, the error message says: