fork(2) download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. struct Test
  7. {
  8. int x[20];
  9. void * operator new[](size_t S)
  10. {
  11. cout << S << endl;
  12. return nullptr;
  13. }
  14. };
  15.  
  16. int main(int argc, char * argv[])
  17. {
  18. Test * t = new Test[5];
  19. }
  20.  
Success #stdin #stdout 0.01s 5500KB
stdin
Standard input is empty
stdout
400