This program is supposed to take input from the user regarding 5 players names and levels, whenever the loop goes around the fifth time, right after the user enters the fifth players name the program crashes. I have no idea why.
Out of bounds. player[5] means 0, 1, 2, 3, 4 and you are doing 1, 2, 3, 4, 5 so it is skipping [0] and filling in player [1], [2], [3], [4] and then trying to fill a player[5] that doesn't exist. Like wise you are trying to print an extra field that doesn't exist.
I'm under Ubuntu so had to change system("CLS"); to "clear" for me, but here is your code with the fixes and an added for statement to print out the whole array: