#include <iostream>
#include <vector>
struct Person {
unsigned int id;
std::string name;
uint8_t age;
// ...
};
int main() {
std::istream& ifs = std::cin; // Open file alternatively
std::vector<Person> persons;
Person actRecord;
while(ifs >> actRecord.id >> actRecord.age &&
std::getline(ifs, actRecord.name)) {
persons.push_back(actRecord);
}
return 0;
}
ICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KICAgICNpbmNsdWRlIDx2ZWN0b3I+CgogICAgc3RydWN0IFBlcnNvbiB7CiAgICAgICAgdW5zaWduZWQgaW50IGlkOwogICAgICAgIHN0ZDo6c3RyaW5nIG5hbWU7CiAgICAgICAgdWludDhfdCBhZ2U7CiAgICAgICAgLy8gLi4uCiAgICB9OwoKICAgIGludCBtYWluKCkgewogICAgICAgIHN0ZDo6aXN0cmVhbSYgaWZzID0gc3RkOjpjaW47IC8vIE9wZW4gZmlsZSBhbHRlcm5hdGl2ZWx5CiAgICAgICAgc3RkOjp2ZWN0b3I8UGVyc29uPiBwZXJzb25zOwoKICAgICAgICBQZXJzb24gYWN0UmVjb3JkOwogICAgICAgIHdoaWxlKGlmcyA+PiBhY3RSZWNvcmQuaWQgPj4gYWN0UmVjb3JkLmFnZSAmJiAKICAgICAgICAgICAgICBzdGQ6OmdldGxpbmUoaWZzLCBhY3RSZWNvcmQubmFtZSkpIHsKICAgICAgICAgICAgcGVyc29ucy5wdXNoX2JhY2soYWN0UmVjb3JkKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiAwOwogICAgfQ==