You need to remove the newline left behind by inputting the number of players.
Code:
    cin >> num_player;
    cin.ignore();  //!! add this