Advertisement
limimage

DimaorAndrey

Mar 18th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. vector<int> vec = {1, 2, 3, 4, 5};
  2.  
  3. void Solve() {
  4. auto ptr = vec.data();
  5. delete[] ptr;
  6. for (int v: vec)
  7. cout << v << endl;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement