fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. std::vector<int> wektor;
  7. std::vector<int> wektory[10];
  8.  
  9. wektory[0].push_back(10);
  10. wektory[5].push_back(20);
  11. cout<<wektory[5][0]<<endl;
  12. cout<<wektory[0][0]<<endl;
  13. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
20
10