The following sentence has been split into four segments. Identify the segment that contains an error.
They had been dancing / for an hour / when our dance teacher / had arrived.
1
when our dance teacher
2
They had been dancing
3
for an hour
4
had arrived