Which of the following sentences contains a grammatical error in the use of conditional sentences?
A) If I had known, I would have come earlier.
B) If she studies hard, she will pass the exam.
C) If they would have called, we would have answered.
D) If it rains, we will cancel the picnic.