The following sentence has been split into four segments. Identify the segment that contains a grammatical error.
The boy, as well as / his friends, were / absent from the class / when the teacher came.
1
absent from the class
2
when the teacher came
3
his friends, were
4
The boy, as well as