fork download
  1. #include <iostream>
  2.  
  3. int main ()
  4. {
  5. auto f = +[] (std::string s)
  6. {
  7. return std::string (std::move (s));
  8. };
  9. std::string s ("hello");
  10. f (std::move (s));
  11. }
Runtime error #stdin #stdout #stderr 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
*** Error in `./prog': double free or corruption (fasttop): 0x08e41a10 ***