howb to add elements to vector c++ without setting size code example
Example: declare vector of size n in c++
#include <vector>
auto n = 20
// create a vector with n=20 integer elements
std::vector<int> arr(n);
#include <vector>
auto n = 20
// create a vector with n=20 integer elements
std::vector<int> arr(n);