#include <vector>
#include <string>
#include <fstream>
int main()
{
std::vector<std::string> array;
std::string line;
std::ifstream myfile( "text.txt");
if (myfile)
{
while (std::getline( myfile, line ))
array.push_back(line);
}
}
I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGZzdHJlYW0+CgppbnQgbWFpbigpCnsKICAgc3RkOjp2ZWN0b3I8c3RkOjpzdHJpbmc+IGFycmF5OwogICBzdGQ6OnN0cmluZyBsaW5lOwogICBzdGQ6Omlmc3RyZWFtIG15ZmlsZSggInRleHQudHh0Iik7CiAgIGlmIChteWZpbGUpIAogICB7CiAgICAgd2hpbGUgKHN0ZDo6Z2V0bGluZSggbXlmaWxlLCBsaW5lICkpICAKICAgICAgICBhcnJheS5wdXNoX2JhY2sobGluZSk7CiAgIH0KfQ==