In the given sentence, identify the segment which contains the grammatical error.
Despite warnings, the driver continued to speed and have been caught by the traffic police.
1
and have been caught
2
Despite warnings
3
the driver continued to speed
4
by the traffic police
5
Question Not Attempted