Brad Larson's answer is spot onBrad Larson's answer is spot on. Since I'm the moderator that handled those comment flags, I'll expand on why they were deleted.
Both comments were flagged (as Brad points out). While neither seemed "Rude", neither comment really added anything to the conversation. "It's not complete" is vague -- what's not complete? What about it is not complete? What is it missing that would make it complete?
The second comment:
When I add a couple of hacks to make it a complete program, it works fine.
is not useful as a comment in of itself. "When I change your program, it works". Ok... What changes are you referring to? What changes did you make?
If someone from Google comes in and sees your comments, would they consider them:
- Helpful and useful.
- Neither helpful or unhelpful.
- Not useful.
Comments that fall under #2 and #3 are really subject to deletion at any time. All it takes is a flag. #1 should normally be edited into the answer, question, or become its own answer (depending), but they get to stick around as a comment (subject to obsoleteness, of course).
In your case, while the flags weren't 100% spot on, the comments did fall into categories #2 and #3, and that lead to them being deleted.
If you provide useful and actionable information "We're missing x, y, and z, from your code; without that we can't help you", or "when I add the following lines, your code works", then your comment won't likely be deleted.
We're actively trying to keep comments from being like this: