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