fork(4) download
  1. #include <iostream>
  2. #include <unordered_map>
  3. using namespace std;
  4.  
  5. bool report_new = false;
  6.  
  7. void* operator new ( std::size_t count ) {
  8. if (report_new)
  9. cout << "operator new " << count << "\n";
  10. return malloc(count);
  11. }
  12.  
  13. unordered_map<string, int> m = {
  14. { "сдрысни пидор", 1 },
  15. { "мать твою ебал", 2 }
  16. };
  17.  
  18. int main() {
  19. report_new = true;
  20. if(m.find("говно сопливое") == m.end())
  21. cout << "пошел нахуй чмо\n";
  22. report_new = false;
  23. return 0;
  24. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
operator new 28
пошел нахуй чмо