#include <iostream>
#include <vector>
struct Cell
{
Cell(int height) : _height(height) {}
int height() const {return _height;}
private:
int _height;
};
int main()
{
std::vector<Cell> v = { 2, 4, 8, 16, 32 };
for (std::size_t index = 0; index < v.size(); ++index)
std::cout << "Height at index " << index << " is " << v[index].height() << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKc3RydWN0IENlbGwKewogICAgQ2VsbChpbnQgaGVpZ2h0KSA6IF9oZWlnaHQoaGVpZ2h0KSB7fQogICAgaW50IGhlaWdodCgpIGNvbnN0IHtyZXR1cm4gX2hlaWdodDt9Cgpwcml2YXRlOgogICAgaW50IF9oZWlnaHQ7Cn07CgppbnQgbWFpbigpCnsKICAgIHN0ZDo6dmVjdG9yPENlbGw+IHYgPSB7IDIsIDQsIDgsIDE2LCAzMiB9OwoKICAgIGZvciAoc3RkOjpzaXplX3QgaW5kZXggPSAwOyBpbmRleCA8IHYuc2l6ZSgpOyArK2luZGV4KQogICAgICAgIHN0ZDo6Y291dCA8PCAiSGVpZ2h0IGF0IGluZGV4ICIgPDwgaW5kZXggPDwgIiBpcyAiIDw8IHZbaW5kZXhdLmhlaWdodCgpIDw8ICdcbic7Cn0=