C++ solutions to the Canadian Computing Competition questions.