vector<int>::iterator it = B.begin();
vector<int>::iterator end = B.end();
for (; it != end; ++it)
A.erase(A.begin() + *it);