fork download
  1. #include <iostream>
  2.  
  3. static void* operator new(size_t size)
  4. {
  5. return 0;
  6. }
  7.  
  8. int main() {
  9. // your code goes here
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 4400KB
stdin
Standard input is empty
compilation info
prog.cpp:3:38: error: ‘void* operator new(size_t)’ may not be declared as static
 static void* operator new(size_t size)
                                      ^
stdout
Standard output is empty