To fill a std::vector from std::cin, I usually write as following code:
std::vector
std::cin
struct point{ int x, y; }; int main(