so ive been reading multiple (and resent) c++ books and learning about vectors and they all are telling me to define a vector like this:
vector<int> v1 = {4 ,3 ,5};
however when i compile it (Im using gnu gcc compiler in codeblocks) it comes up with this error
in c++ 98 'v1' must be initialized by constructor not by '{...}' and i also get another one underneath that that sais: could not convert '{4, 3, 5}' from 'brace enclosed initializer list' to 'std::vector v1'
if you could help me it'd be much appreciated. And i did include the vector library.