The following sentence has been split into four segments. Identify the segment that contains a grammatical error.
The teacher checked / whether each of them / have a blanket / as it was a cold night.
Ahave a blanket
Bas it was a cold night
CThe teacher checked
Dwhether each of them Correct
