[rasterizer] Modify an input method from std::cin to gets().

- Use gets() instead of std::cin to handle multiple strings at once.