Which sentence is a compound sentence?
A.
As I walked along the beach, I found strange footprints.
B.
I walked along the beach and found strange footprints.
C.
I found strange footprints when I walked along the beach.
D.
I walked along the beach, and I found strange footprints.