fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int *foo, *goo;
  6. foo = new int;
  7. *foo = 1;
  8. goo = new int;
  9. *goo = 3;
  10. *foo = *goo + 3;
  11. foo = goo;
  12. *goo = 5;
  13. *foo = *goo + *foo;
  14. cout << *foo;
  15. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
10