Not everybody writes in the language they want to exploit I suppose, that's the great thing about LLMs!
on edit: even though I don't know C or C++ (I suppose it's C but can't be sure) I do think I can figure out what it's doing and how to guess what the password is, so that seems bad.