I hate AI but what you did there was say “it’s broken please fix” with no description of your issue. You deserve nothing.
Every time I have asked ChatGPT to code something it seems to lose the thread halfway through and starts giving nonsensical code. I asked it to do something simple in HP41C calculator code and it invented functions out of whole cloth.
Quality of output depends a lot on how common the code is in its training data. I would guess it’d be best at something like Python, with its wealth of teaching materials and examples out there.
I like when you give it an answer and you tell it where it made an error. So it changes it to something that’s even more wrong, then you point that out and it says, “Sorry. Here’s the first wrong thing I told you, again.”
Only when it pulls out “works fine on my machine, must be user error”
Say the line BartGPT