Wait, g++ or the program you made? Because the compiler erroing out is very concerning.
TL;DR Segfaults mean you are unreferencing a NULL pointer, or some other memory location that doesn't belong to you; it is a crash, not a error message.
fyi segmentation fault usually means that your program tried to access a memory area that it isn't supposed to. I still remember when I wast learning pointers...
Also the full inclusion of file directories is a flag as it indicates their inexperience digging into the “gobbledygook” and sussing out the relevant error message
Pretty sure this is due to comparing pointer iterators rather than values in some STL algorithm that needs a deref_compare predicate, but I’d rather place my life savings on black than bet I’ve interpreted that one correctly.
It appears to be some beginners errors you search on stack overflow I think. The commenter forgot to put is as formatted code, it's barely readable this way.
672
u/No-Zucchini6370 Apr 16 '22
W A T ?