fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. int input;
  7. vector<int>V;
  8. while(cin >> input)
  9. {
  10. V.push_back(input);
  11. }
  12.  
  13. for(int i = 0; i < sizeof(V); i++)
  14. {
  15. cout << V[i] << endl;
  16. }
  17.  
  18. // your code goes here
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5280KB
stdin
1
stdout
1
0
0
0
0
0
4113
0
858851888
943206709
2617
0
0
0
0
0
0
0
0
0
0
0
0
0