An apparatus for separating CO2 and venting a gas, comprising a contacting tower (T) comprising a lower section (I) and an upper section (C), heat and mass transfer promoting packings (P) in the lower section, a CO2 capture unit (PSA, CB, CC), a device for feeding a gas, possibly containing at least 15% CO2, to the CO2 capture unit, a device for feeding a nitrogen-enriched gas (N) from the CO2 capture unit to the bottom of the lower section of the cooling tower, a device for feeding water (H) above the lower section and below the upper section of the tower at a temperature hotter than or equal to that of the nitrogen-enriched gas entering the tower, and a device connected at a level above the lower section for feeding thereto a gas (G, TG, CTG, IN) that is to be vented and is a portion of the gas that is to be separated in the CO2 capture unit (PSA, CB, CC) and/or a gas treated in the CO2 capture unit (PSA, CB, CC).