What do you expect this to do:
Code:
	cin>>numPlayers[20];
because what it's actually doing is reading a single int into slot 21 of a 20-element array (invalid). Are you trying to read in 20 different values?