c++ help
Feedback?
CHALLENGE ACTIVITY
5.6.1:Vector resize
228gx3zqy
Start D- Given the integer vector valElements with two elements and the input integer factorVal, resize valElements to increase the size of 0 the vector by factorVal times D After resizing valElements,the new elements are initialized with the default value-1 ExIf the input is 4then the output is
Start 4 5 End Start 4 5 -1-1-1-1-1-1 End
NoteAssume that factorVal is a non-negative integer
#include <iostream> #include <vector> using namespace std;
int main() f vector<int> vaiEl int valElementssize int factorVal;