fork(4) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. string text;
  8. for (int i = 0; i < 3; i++)
  9. {
  10. cin >> text;
  11. text.erase(text.length()/2);
  12. cout << text << endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout