#include <iostream>
#include <string>
#include <algorithm>
int main() {
std::string foo = "this, is, a, test";
char chars[] = ",";
foo.erase(std::remove(foo.begin(), foo.end(), chars[0]), foo.end());
std::cout << foo;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKaW50IG1haW4oKSB7CglzdGQ6OnN0cmluZyBmb28gPSAidGhpcywgaXMsIGEsIHRlc3QiOwoJY2hhciBjaGFyc1tdID0gIiwiOwoJZm9vLmVyYXNlKHN0ZDo6cmVtb3ZlKGZvby5iZWdpbigpLCBmb28uZW5kKCksIGNoYXJzWzBdKSwgZm9vLmVuZCgpKTsKCXN0ZDo6Y291dCA8PCBmb287CglyZXR1cm4gMDsKfQ==