单项选择题

I missed the last bus last night, so I could not but ______all the way home.

[A] walking
[B] to walk
[C] have walked
[D] walk