A colorless solid X on heating evolves CO2 and also gave a white residue soluble in water, residue also gave CO2 when treated with dilute acid. X is: