The sentence that contains a subject that is compound in form but singular in meaning is:
B. A can of frank and beans is my favorite dinner.
In this sentence, "a can of frank and beans" is a compound subject (due to "frank and beans") but refers to a single item (the can), making it singular in meaning.