wrong1.cc 292 B

1234567891011121314151617
  1. #include <noduma.h>
  2. #include <iostream>
  3. #include <dumapp.h>
  4. using namespace std;
  5. int main() {
  6. cout << "Hello world!" << endl;
  7. int* pI = new int;
  8. *pI=2;
  9. delete(pI);
  10. cerr << "Now deleting a pointer twice..." << endl;
  11. delete(pI);
  12. cerr << "Did you notice?" << endl;
  13. return 0;
  14. }