fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string s[100];
  7. int n;
  8. cin >> n;
  9. int index = 0;
  10. while (n > 0) {
  11. cin >> s[index++];
  12. --n;
  13. }
  14. for (string c : s) {
  15. cout << c << '\n';
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 5316KB
stdin
5
375 262 401 296 366
stdout
375
262
401
296
366