fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::cin.sync() ;
  7.  
  8. std::string line ;
  9. std::getline(std::cin, line) ;
  10. std::cout << line << '\n' ;
  11. }
Success #stdin #stdout 0s 3032KB
stdin
One
Two
Three
stdout
One