Bubbles came off from the copper pennies are hydrogen gas. There many free hydrogen ions in an acid like vinegar. And because of the chemical reaction between the copper and the vinegar, many hydrogen ions joined together to form hydrogen gas.
In both cases, energy will move from an area of higher temperature to an area of lower temperature. So, the energy from room-temperature air will move into the cold water, which warms the water.