Skip to content

All prompts

CodeLevel 2

Help me find an error in my code

Paste your code and the error message and get the likely cause in plain words, plus the steps to fix it.

Updated

Fill in and copy

My {limbaj} code is not working as it should. What it was supposed to do: {scop} What actually happens: {problema} Code: {cod} Explain in plain words what the most likely cause of the problem is. Then show me the corrected code, with the changed line marked in a comment, and tell me what you changed and why. If there are other possible causes, list them in order of likelihood and tell me how to check each one. If you are missing information (the language version, the rest of the file), ask me before guessing.

4 fields are still empty: they stay in curly braces in the text.

Tips

  • Copy the whole error message exactly as it appears: it usually holds the best clue.
  • Remove passwords, keys and personal data from the code before you paste it.
  • Test the fix before using it anywhere important.

Do not put personal data or real secrets in a prompt: replace them with made-up names.