Grammar, pronunciation, and the Korean you actually hear.
One wrong 네 to a negative question got me a second dinner. In Korean, yes and no answer the sentence — not what you did.