_______ in the queue for half an hour, Tom suddenly realized that he had left his wallet at home.
#90114
A
To wait
B
Having waited
C
Have waited
D
To have waited