fork download
  1. #include <iostream>
  2. #include <limits>
  3.  
  4. int main()
  5. {
  6. int x;
  7. while(std::cin >> x)
  8. {
  9. std::cout << x << std::endl;
  10. std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
  11. }
  12. }
  13.  
Success #stdin #stdout 0s 3144KB
stdin
45(here is space)string and other stuff is here
454(here is space)string and other stuff is here
4121(here is space)string and other stuff is here
77(here is space)string and other stuff is here
45545(here is space)string and other stuff is here
1122(here is space)string and other stuff is here
stdout
45
454
4121
77
45545
1122