Ответ:

The correct sentence is: You needn't have brought food. We have got plenty here.

Needn't have + past participle means that an action was unnecessary, although it was completed.

Answer: B) needn't have.