Which sentence contains a pronoun with an unclear antecedent?

Several beach-goers got caught in the rip tide when they went swimming.

The puppy and kitten played together while they ate.

Perry dropped his cheese and apple on the floor but then ate it.

The pilot said he would alert the crew when it was time to land.