fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. std::string foo()
  5. {
  6. return "foo";
  7. }
  8.  
  9. int main()
  10. {
  11. std::cout << (foo() = "bar") << "\n";
  12. }
  13.  
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
bar