#include <iostream>
#include <algorithm>
#include <iterator>
#include <vector>
int main()
{
std::vector<int> a{ 1, 2, 3, 4, 5 };
std::vector<int> b{ 4, 5, 6, 7 };
std::vector<int> c;
std::set_difference(a.begin(), a.end(), b.begin(), b.end(), std::inserter(c, c.begin()));
for (auto it : c)
{
std::cout << it << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8aXRlcmF0b3I+CiNpbmNsdWRlIDx2ZWN0b3I+CgppbnQgbWFpbigpCnsKCXN0ZDo6dmVjdG9yPGludD4gYXsgMSwgMiwgMywgNCwgNSB9OwoJc3RkOjp2ZWN0b3I8aW50PiBieyA0LCA1LCA2LCA3IH07CglzdGQ6OnZlY3RvcjxpbnQ+IGM7CgoJc3RkOjpzZXRfZGlmZmVyZW5jZShhLmJlZ2luKCksIGEuZW5kKCksIGIuYmVnaW4oKSwgYi5lbmQoKSwgc3RkOjppbnNlcnRlcihjLCBjLmJlZ2luKCkpKTsKCglmb3IgKGF1dG8gaXQgOiBjKQoJewoJCXN0ZDo6Y291dCA8PCBpdCA8PCAiICI7Cgl9CgoJcmV0dXJuIDA7Cn0=