fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. std::string output( void )
  5. {
  6. std::string s1 = "Hello", s2 = "World";
  7.  
  8. return s1 + ", " + s2;
  9. }
  10.  
  11. int main()
  12. {
  13. std::cout << output() << std::endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
Hello, World