fork download
  1. #include <iostream>
  2. #include <cliext/vector>
  3.  
  4. using cliext::vector;
  5. using std::cout;
  6. using std::endl;
  7.  
  8. int main()
  9. {
  10. vector< vector<int> > b;
  11.  
  12. vector<int> temp;
  13.  
  14. temp.push(0);
  15. temp.push(1);
  16.  
  17. b.push_back(temp);
  18.  
  19. cout << "b[0][1] = " << b[0][1] << endl;
  20.  
  21. b.at(0)[1] = 5;
  22.  
  23. cout << "b[0][1] = " << b[0][1] << endl;
  24.  
  25. return 0;
  26. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty