fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5. void foo( std::string& str)
  6. {
  7. cout<<str<<"\n";
  8. }
  9. int main() {
  10. // your code goes here
  11. const char* s = "hello";
  12. //foo(s);
  13. string g = "89";
  14. string& h = g;
  15. return 0;
  16. }
Success #stdin #stdout 0s 4552KB
stdin
Standard input is empty
stdout
Standard output is empty