fork(1) download
  1. #include <iostream>
  2. #include <memory>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. auto sp = std::make_shared<int>();
  7. auto p = sp.get();
  8. delete p;
  9. }
Runtime error #stdin #stdout #stderr 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
*** Error in `./prog': free(): invalid pointer: 0x08c02a1c ***