fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <stdio.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. freopen( "in.txt", "r", stdin );
  10. freopen( "out.txt", "w", stdout );
  11.  
  12. string s;
  13. while ( getline( cin , s ) )
  14. cout << s << "\n";
  15.  
  16. fclose( stdin );
  17. fclose( stdout );
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3136KB
stdin
Standard input is empty
stdout
Standard output is empty