fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Foo
  5. {
  6. double m_uninitializedField;
  7. double m_normalField;
  8. double m_isDirty;
  9. public:
  10. Foo(): m_isDirty(false), m_normalField(0)
  11. {
  12. }
  13. };
  14.  
  15. int main() {
  16. // your code goes here
  17. Foo* aPtr = new Foo();
  18. Foo* bPtr = new Foo();
  19.  
  20. *bPtr = *aPtr; // Underflow error
  21.  
  22. delete aPtr;
  23. delete bPtr;
  24. return 0;
  25. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty