Select the segment of the sentence that contains a grammatical error.
There was nobody at the counter when I went in the bank, and I had to wait to be served.
1
when I went in the bank
2
There was nobody at the counter
3
to be served
4
and I had to wait