The sentence that contains a subject that is compound in form but singular in meaning is:
4. A can of frank and beans is my favorite dinner.
In this sentence, "a can of frank and beans" is a compound subject ("frank and beans") but takes a singular verb "is," indicating that it is treated as a single unit.