fork(1) download
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6. string tekst;
  7. getline(cin, tekst);
  8. tekst.erase(remove(tekst.begin(), tekst.end(), ' '), tekst.end());
  9. cout<<tekst;
  10. return 0;
  11. }
Success #stdin #stdout 0s 16064KB
stdin
ala ma kota
stdout
alamakota