fork(1) download
  1. #include <iostream>
  2. #include <iterator>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7. copy(istream_iterator<int>(cin),
  8. istream_iterator<int>(),
  9. ostream_iterator<int>(cout, " "));
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
1 123 321 53 64
stdout
1 123 321 53 64