Hey there! Have you ever used c++STL in CodeBlocks? As I have noted, if you used below example code of vector in c++STL, after that you might face the error something like this
error : in c++98 ‘v’ must be initialized by constructor, not by ‘{….}’
error: could not convert ‘{1,4,6,8,10}’ from ‘<brace-enclosed initialize list>’ to ‘std::vector<int>’

you can use the following steps to remove the error
- Go to CodeBlocks toolbar –> settings –> compiler
- Select option[Have g++ follow the c++ ISO c++ language standard[-std=c++11]
- Press ok

Thank you!