r/cpp • • Jan 02 '26

Every LLM hallucinates that std::vector deletes elements in a LIFO order

251 Upvotes

118 comments sorted by

View all comments

Show parent comment

52

u/irqlnotdispatchlevel Jan 02 '26

Making that a failure state in an interview regardless of everything else discussed during the interview makes you a bad interviewer.

32

u/SkoomaDentist Antimodern C++, Embedded, Audio Jan 02 '26

It seems to be a sadly common assumption (including in many conversations in this very sub) that knowing language details is somehow much more important than understanding the problem domain or being capable of succesfully working on complex programs.

11

u/irqlnotdispatchlevel Jan 02 '26

Besides this, failure states are almost never good because interviews are nothing like the day to day work and can be very stressful. It should be expected that even very good candidates will give extremely dumb answers to trivial questions because of this (not that in this case the answer would be dumb, since it makes sense to have a container that behaves like that). That's why it's an hour long, often multi stage, process.