I am writing a program that should append a vector w to a vector v. But I get a compilation error at "v.push_back(w);". I would appreciate the feedback. Thank you!
Re line 33: I got this " v.insert(v.end(),w.begin(),w.(end));" but it doesn't work. I assume the first argument or parameter in this function specifies when to begin the appendation, the second argument specifies the first element to be appended to the vector, and the third argument specifies the last element to be appended to the vector.
In any case, I am trying to do this without using the vector insert function, but by using push_backs.
NOTE: I had to input '0' into line 11's vector initialization, otherwise the line 14 assert statement would fail. I assume that this is because the elements of empty vectors, unlike the elements of empty arrays, are not automatically set to '0'.