fork(1) download
  1. #include<iostream>
  2. #include<cstring>
  3. #include<string>
  4. using namespace std;
  5.  
  6. const int MAX_SIZE = 2001;
  7.  
  8. int main() {
  9. string str[2001];
  10. int line = 0;
  11. while (cin.eof()) {
  12. cin >> str[line];
  13. ++line;
  14. }
  15. for (int i = 0; i <= line; ++i) {
  16. cout << str[i] << "\n";
  17. }
  18.  
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5432KB
stdin
fWFE
wrg

wgr
e
e
er
er
r
stdout