79537884

Date: 2025-03-27 05:28:13
Score: 3.5
Natty:
Report link

First of all, I have a question, why are you using pointers to store iterators instead of vector?

Now about your question, in c++ sometimes you can dereference an iterator like .end(), but it can cause undefined behavior, so it is not recommended, in your situation, the variable referencing to your .end() could've been initialized before, that's why you can dereference it

Reasons:
  • Blacklisted phrase (1.5): I have a question
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: NeKon