All of the above
Carbohydrates and lipids contain carbon,hydrogen, and oxygen. Protein also contains all of the above elements, including nitrogen. Nucleic acid contains the elements present in protein, including phosphorus. So basically, all the macro molecules have the 3 elements.