When does the program generate an error when debugging: vector iterator not dereferencable and how can it be fixed, approximately ?

Closed due to the fact that the issue is too general for participants Abyx , Kromster , Harry , user194374, αλεχολυτ 20 Dec '16 at 18:52 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

1 answer 1

This error can occur when the iterator is invalid ( end() or the container has been modified).
Use valid iterators.

  • Thank you for the clarification. - fearyt98
  • 2
    When building this can track? ... - Harry
  • I put it a little wrong - when debugging, an exception is thrown there. - fearyt98