Recently I've come across a question that didn't contain any code. The questioner instead asked for code, as some new users do. So far same business as usual, but a user went ahead and posted a solution, since the question isn't closed (yet).
The question shouldn't have been answered to begin with, but now we are in a situation where there exists an answer. So what should we do?
Only comment on the answer? Something along
You didn't review the questioner's code, since there was no code to begin with. Therefore, both your answer as well as the original question are off-topic for this site. Please have a look at [help/on-topic] and vote to close off-topic questions instead of writing answers for low-quality questions.
(Might be a candidate for the FPCs)
- Downvote?
- Flag for moderator intervention?
- Post on Meta?
In an ideal situation, the question would get closed before an answer has been written, but there will always be some edge cases.
PS: There is a similar meta question, but it concerns broken code questions. Here however we don't have any code to fix at all.