Replaced '\n' with endl in solve_code_jam

Replaced the '\n' with endl in solve_code_jam, to force line buffering. This is handy when using the solver in a pipeline, so that all output is visible immediatly, such as with grep or tee.