The message is telling you exactly what is wrong. You have not specified a valid compiler. (Presumably you installed a compiler as well as Codeblocks?)
From the "Settings/Compiler and debugger" menu of Codeblocks select your compiler; then go to the "Toolchain executables" tab. Enter the path of the compiler binaries (omitting the final "bin").