The following sentence has been split into four segments. Identify the segment that contains a grammatical error.
It is not worth / having the trouble / to write to him / as he never replies.
1
to write to him
2
as he never replies
3
having the trouble
4
It is not worth