In which sentence are the italicized words a dangling modifier? (A dangling modifier is a phrase that has no word in the sentence to modify.)

AArriving ten minutes late, the store was closed for the night.
BNot knowing the danger, the soldiers marched into the trap.
CResting on the sea bottom, the old trunk held many coins.
DFlying beneath the cloud, the pilot could see the airport.