fork download
  1. #include <iostream>
  2. using namespace std;
  3. #include <vector>
  4. std::vector<int> tab;
  5. int main() {
  6. // your code goes her
  7. int l = 0;
  8. while(cin>>l)
  9. {
  10. tab.push_back(l);
  11. }
  12. for(auto a:tab)
  13. std::cout<<a<<" ";
  14. }
  15.  
Success #stdin #stdout 0s 3432KB
stdin
6 2 -5 1
stdout
6 2 -5 1