Advertisement
std::vector<int> v1{1,2,3},v2;
v2=v1;
v1.push_back(4);
v2.push_back(5);
- Error
- v1:{1,2,3,4}; v2:{5};
- v1:{1,2,3,4,5}; v2:{1,2,3,4,5};
- v1:{1,2,3,4}; v2:{1,2,3,5};
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.