Heat of formation and heat of combustion are not the same. Heat of formation is the energy input necessary to form a given compound from its component elements (or, if a diatomic gas is a constituent, its natural molecular form such as O2). The heat of combustion is the energy of reaction when the compound is reacted with oxygen only.