I am using the Dev c++ application for writing the code in C/C++. When I used the Veter iterator. For, Iterating the array value. Then I am getting this one error. "[Error] in C++98 'array' must be initialized by constructor, not by '{...}'. Also, I am using Window 10.
Code :-
vector<int> array = { 1, 2, 3, 4, 5 };