#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string str = " texto com espaços em branco ";
str.erase(remove(str.begin(), str.end(), ' '), str.end());
cout << str;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJc3RyaW5nIHN0ciA9ICIgdGV4dG8gY29tIGVzcGHDp29zIGVtIGJyYW5jbyAiOwoJc3RyLmVyYXNlKHJlbW92ZShzdHIuYmVnaW4oKSwgc3RyLmVuZCgpLCAnICcpLCBzdHIuZW5kKCkpOwoJY291dCA8PCBzdHI7CglyZXR1cm4gMDsKfQ==