#include <vector>
#include <iostream>
using foo = std::vector<double>;
int main()
{
std::vector<foo> Vfoo(3);
Vfoo[0].resize(20);
Vfoo[1].resize(1);
for ( unsigned i = 0; i<20; ++i)
Vfoo[2].push_back(3.14*i) ;
std::cout << "Vfoo[0]:\n";
std::cout << "\tsizeof = " << sizeof(Vfoo[0]) << '\n' ;
std::cout << "\telements stored = " << Vfoo[0].size() << '\n' ;
std::cout << "\tcapacity = " << Vfoo[0].capacity() << "\n\n" ;
std::cout << "Vfoo[1]:\n";
std::cout << "\tsizeof = " << sizeof(Vfoo[1]) << '\n' ;
std::cout << "\telements stored = " << Vfoo[1].size() << '\n' ;
std::cout << "\tcapacity = " << Vfoo[1].capacity() << "\n\n" ;
std::cout << "Vfoo[2]:\n";
std::cout << "\tsizeof = " << sizeof(Vfoo[2]) << '\n' ;
std::cout << "\telements stored = " << Vfoo[2].size() << '\n' ;
std::cout << "\tcapacity = " << Vfoo[2].capacity() << '\n' ;
}
I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgZm9vID0gc3RkOjp2ZWN0b3I8ZG91YmxlPjsKCmludCBtYWluKCkKewogICAgc3RkOjp2ZWN0b3I8Zm9vPiBWZm9vKDMpOwoKCVZmb29bMF0ucmVzaXplKDIwKTsKICAgIFZmb29bMV0ucmVzaXplKDEpOwogICAgCiAgICBmb3IgKCB1bnNpZ25lZCBpID0gMDsgaTwyMDsgKytpKQogICAgICAgIFZmb29bMl0ucHVzaF9iYWNrKDMuMTQqaSkgOwoKICAgIHN0ZDo6Y291dCA8PCAiVmZvb1swXTpcbiI7ICAgIAogICAgc3RkOjpjb3V0IDw8ICJcdHNpemVvZiA9ICIgPDwgc2l6ZW9mKFZmb29bMF0pIDw8ICdcbicgOwogICAgc3RkOjpjb3V0IDw8ICJcdGVsZW1lbnRzIHN0b3JlZCA9ICIgPDwgVmZvb1swXS5zaXplKCkgPDwgJ1xuJyA7CiAgICBzdGQ6OmNvdX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