C/C++ Arena

Step 4 of 6

Review: modifying while iterating

Another classic: changing a container while looping over it.

Your turn: this pull request enforces bans and fills the roster back up with substitutes. Fix it so that every banned player is removed (including when two are adjacent), one substitute is added per removed player, and captain returns the right name. There are three bugs.

Previous: Review: leaks on the error path Next: Review: integer math