#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<float *> ft = { new float[1], new float[1], new float[1] };
for(int i = 0; i < 3; i++) {
float *p = ft[i];
*p = i;
}
cout << *ft[1];
for(int i = 0; i < 3; i++) {
delete [] ft[i];
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgdmVjdG9yPGZsb2F0ICo+IGZ0ID0geyBuZXcgZmxvYXRbMV0sIG5ldyBmbG9hdFsxXSwgbmV3IGZsb2F0WzFdIH07CgogICAgZm9yKGludCBpID0gMDsgaSA8IDM7IGkrKykgewogICAgICAgIGZsb2F0ICpwID0gZnRbaV07CiAgICAgICAgKnAgPSBpOwogICAgfQogICAgY291dCA8PCAqZnRbMV07CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgMzsgaSsrKSB7CiAgICAgICAgZGVsZXRlIFtdIGZ0W2ldOwogICAgfQp9Cgo=