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[1000];
  10. int line = 0;
  11. while (!cin.eof()) {
  12. getline(cin, str[line]);
  13. ++line;
  14. }
  15.  
  16. for (int i = 0; i <= line; ++i) {
  17. cout << str[i] << "\n";
  18. }
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5456KB
stdin
fWFE
wrg

wgr
e
e
er
er
r
stdout
fWFE
wrg

wgr
e
e
er
er
r