Renumbered C++ solutions.