Preparing to solve, some gcc-uncompilable code fixed