fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. vector<int>v;
  7. v.push_back(9);
  8. v.push_back(5);
  9. v.push_back(7);
  10.  
  11. for(int i=0;i<v.size();i++){
  12. cout<<v[i]<<" ";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
9 5 7