fork(2) download
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4.  
  5. using std::string; using std::vector; using std::cout; using std::cin; using std::endl;
  6.  
  7. int main ()
  8. {
  9. const vector<string> text;
  10. string words;
  11.  
  12. while (cin >> words) {
  13. for (auto it = text.cbegin(); it != text.cend() && !it->empty(); ++it);
  14. }
  15. cout << words << endl;
  16. }
Success #stdin #stdout 0s 2888KB
stdin
Standard input is empty
stdout