Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<int> vec = {1, 2, 3, 4, 5};
- void Solve() {
- auto ptr = vec.data();
- delete[] ptr;
- for (int v: vec)
- cout << v << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement