#include <iostream>
#include <string>
#include <vector>
#include <cctype>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <list>
#include <deque>
int main()
{
std::list<int> nums = {1, 2, 3, 4, 5};
auto &ref = nums;
nums.assign({1, 2, 3, 4, 5, 6, 7});
for (auto &i : nums)
std::cout << i << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8Y2N0eXBlPgojaW5jbHVkZSA8Y3N0ZGxpYj4KI2luY2x1ZGUgPGZzdHJlYW0+CiNpbmNsdWRlIDxzc3RyZWFtPgojaW5jbHVkZSA8bGlzdD4KI2luY2x1ZGUgPGRlcXVlPgoKCmludCBtYWluKCkKewogICAgICAgIHN0ZDo6bGlzdDxpbnQ+IG51bXMgPSB7MSwgMiwgMywgNCwgNX07CiAgICAgICAgYXV0byAmcmVmID0gbnVtczsKCiAgICAgICAgbnVtcy5hc3NpZ24oezEsIDIsIDMsIDQsIDUsIDYsIDd9KTsKICAgICAgICBmb3IgKGF1dG8gJmkgOiBudW1zKQogICAgICAgICAgICAgICAgc3RkOjpjb3V0IDw8IGkgPDwgc3RkOjplbmRsOwp9Cg==