Which of the following is a compound sentence?
A. The brother and sister went shopping; they needed to buy a gift for their parents' anniversary.
B. She named her dog Daisy after her favorite flower.
C. The camera needs new batteries.
D. I wanted to get home early but ended up working late.