how to add elements in a vector code example
Example 1: appending a vector in vector
a.insert(a.end(), b.begin(), b.end());
Example 2: adding element in vector c++
vector_name.push_back(element_to_be_added);
a.insert(a.end(), b.begin(), b.end());
vector_name.push_back(element_to_be_added);