The conversation between human and AI assistant.
What is the use of C++ STL in competitive programming?
Can you give me an example of how to use the vector container in competitive programming?
Sure! The vector container is used to store a dynamic array that can resize itself automatically. For instance, if you want to store a list of integers, you can create a vector of integers as follows:

vector<int> nums;

And to insert an element into the vector, you can use the push_back() method:

nums.push_back(10);