#include <iostream>
#include <vector>
using namespace std;
struct Test {
vector<float> _vector;
const float& GetElement(size_t x) const {
return _vector.at(x);
}
};
int main() {
Test tst;
tst._vector.push_back(123.456);
cout << tst.GetElement(0) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IFRlc3QgewoJdmVjdG9yPGZsb2F0PiBfdmVjdG9yOwoJY29uc3QgZmxvYXQmIEdldEVsZW1lbnQoc2l6ZV90IHgpIGNvbnN0IHsKICAgICAgICByZXR1cm4gX3ZlY3Rvci5hdCh4KTsKICAgIH0KfTsKCmludCBtYWluKCkgewoJVGVzdCB0c3Q7Cgl0c3QuX3ZlY3Rvci5wdXNoX2JhY2soMTIzLjQ1Nik7Cgljb3V0IDw8IHRzdC5HZXRFbGVtZW50KDApIDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==