fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. int test;
  8. cin>>test;
  9. cout<<test;
  10. for(int i=0;i<=test;i++)
  11. {
  12. string s;
  13. getline (cin, s);
  14. cout<<s;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 15240KB
stdin
2
hello i am manish 1234
eeeeeee
stdout
2hello i am manish 1234eeeeeee