Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя aaronnaidu

Автор aaronnaidu, 5 лет назад, По-английски

67469642 Could someone please explain to me which part of my code is causing the "heap use after free" error shown in the diagnostics section? (I understand my code is in no way a solution to the problem it was submitted for, I would just like to know what is causing the error before I try to convert what I have into a solution)

Thank you!

  • Проголосовать: нравится
  • -9
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

You have on the error message line numbers for when you are using it, when it was allocated and when it was freed. Kinda possible to see what's going on?

»
5 лет назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

Between iterations you are incrementing iterator that you already deleted from the set