Since it is random whiny garbage not program. Program looks like that ...:
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
size_t i_variables = 0;
size_t i_properties = 1;
std::vector<std::string> identifiers[2] = {
{"removing", "items", "from", "what"},
{"from", "noob", "what"}
};
int main() {
// your posted garbage begins
for (std::string v : identifiers[i_variables]) {
auto it = find(identifiers[i_properties].begin()
, identifiers[i_properties].end(), v);
if (it != identifiers[i_properties].end()) {
identifiers[i_properties].erase(it);
}
}
// your posted garbage ends
for (auto const& v : identifiers[i_properties]) {
std::cout << v << '\n';
}
}
... and it seems to work.
Demo: <
http://coliru.stacked-crooked.com/a/3bc5c9364eb72e31>