#includeIn this example, we create a vector of integers called "nums" and initialize it with four values. Then we use the push_back() function to add two more values to the end of the vector. Finally, we loop through the vector using a range-based for loop and print each element. It's important to note that push_back() is a member function of the vector class. So the code example above uses the#include int main() { std::vector nums = {1, 2, 3, 4}; nums.push_back(5); nums.push_back(6); for (auto num : nums) { std::cout << num << " "; // prints: 1 2 3 4 5 6 } return 0; }