When I first started C++, I used Dev-C++ 5.4.2. Recently I have tried out Code::Blocks 12.11 using the "GNU CCC Compiler", and I like it more, except for the following issue:
The following code compiles fine, and with no run-time errors, in Dev-C++:
begin/end on arrays are a C++11 only feature. Following the 1998 iso standard will not work.
I have never used codeblocks so I can't be too much more help, but see if there is an option for C++11 in the build options. Make sure you have the latest version of the compiler as well.