fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int n;
  7. cin >> n;
  8. string niz[n];
  9.  
  10. for (int t1 = 0; t1 < n; t1++) {
  11. getline(cin, niz[t1]); }
  12.  
  13. for (int t2 = 0; t2 < n; t2++) {
  14. cout << niz[t2] << endl; }
  15. }
Success #stdin #stdout 0s 2864KB
stdin
3
hello everyone
out
there
stdout
hello everyone
out