std::vector<int> a;
#include <iostream>#include <vector>using namespace std; int main () { vector<int> myvector; myvector.push_back(1); myvector.push_back(2); myvector.push_back(3); myvector.push_back(4); myvector.push_back(5); cout << "myvector tiene " << int(myvector.size()) << " elementos." << endl; for (int e : myvector) { cout << e << endl; } return 0;}