#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int*> intPtrs1(10, nullptr);
vector<int*> intPtrs2(10, nullptr);
for (auto intPtr : intPtrs1)
intPtr = new int(1);
for (auto &intPtr : intPtrs2)
intPtr = new int(1);
for (int i = 0; i < 10; i++) {
cout << intPtrs1[i] << " " << intPtrs2[i] << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJdmVjdG9yPGludCo+IGludFB0cnMxKDEwLCBudWxscHRyKTsKCXZlY3RvcjxpbnQqPiBpbnRQdHJzMigxMCwgbnVsbHB0cik7CgkKCWZvciAoYXV0byBpbnRQdHIgOiBpbnRQdHJzMSkgCgkJaW50UHRyID0gbmV3IGludCgxKTsKCWZvciAoYXV0byAmaW50UHRyIDogaW50UHRyczIpCgkJaW50UHRyID0gbmV3IGludCgxKTsKCQoJZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgaSsrKSB7CgkJY291dCA8PCBpbnRQdHJzMVtpXSA8PCAiICIgPDwgaW50UHRyczJbaV0gPDwgZW5kbDsKCX0KCQoJcmV0dXJuIDA7Cn0=