fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <fstream>
  4. #include <sstream>
  5.  
  6. using namespace std;
  7.  
  8. namespace my {
  9.  
  10. ostream& endl(ostream& stream) { return stream << '\n'; }
  11. }
  12.  
  13. int main(int argc, char * argv[])
  14. {
  15. cout << "x" << my::endl << "y" << my::endl;
  16. fstream f("ttt",ios::out);
  17. f << my::endl;
  18. stringstream ss;
  19. ss << my::endl;
  20. }
  21.  
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
x
y