#include <iostream>
#include <vector>
#include <string>
#include <sstream>
using namespace std;
class Point
{
int x;
int y;
public:
Point(int x = 0, int y = 0) : x(x), y(y)
{
}
std::string string()
{
std::stringstream ss;
ss << x;
ss << ", ";
ss << y;
return ss.str();
}
};
void print(const std::vector<Point> &points)
{
for (Point p : points)
{
std::cout << p.string() << std::endl;
}
}
int main() {
std::vector<Point> points(3);
print(points);
for (int i = 0; i < points.size(); ++i)
{
points.at(i) = Point(1, 1);
}
print(points);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8c3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIFBvaW50CnsKCWludCB4OwoJaW50IHk7CgkKcHVibGljOgoJUG9pbnQoaW50IHggPSAwLCBpbnQgeSA9IDApIDogeCh4KSwgeSh5KQoJewoJCQoJfQoJCglzdGQ6OnN0cmluZyBzdHJpbmcoKQoJewoJCXN0ZDo6c3RyaW5nc3RyZWFtIHNzOwoJCQoJCXNzIDw8IHg7CgkJc3MgPDwgIiwgIjsKCQlzcyA8PCB5OwoJCQoJCXJldHVybiBzcy5zdHIoKTsKCX0KfTsKCnZvaWQgcHJpbnQoY29uc3Qgc3RkOjp2ZWN0b3I8UG9pbnQ+ICZwb2ludHMpCnsKCWZvciAoUG9pbnQgcCA6IHBvaW50cykKCXsKCQlzdGQ6OmNvdXQgPDwgcC5zdHJpbmcoKSA8PCBzdGQ6OmVuZGw7Cgl9Cn0KCmludCBtYWluKCkgewoJc3RkOjp2ZWN0b3I8UG9pbnQ+IHBvaW50cygzKTsKCQoJcHJpbnQocG9pbnRzKTsKCQoJZm9yIChpbnQgaSA9IDA7IGkgPCBwb2ludHMuc2l6ZSgpOyArK2kpCgl7CgkJcG9pbnRzLmF0KGkpID0gUG9pbnQoMSwgMSk7Cgl9CgkKCXByaW50KHBvaW50cyk7CgkKCXJldHVybiAwOwp9