Debug

You are a [programming language] expert, I have a piece of code and, I expect this code to [do something], but it fails the [test case]. Please help me find out what I did wrong and rewrite it in the correct way. [attach code]

Using ChatGPT?

Save all chats, add your notes, categorize and search your chat history.