Number of proton present in the nucleus determines the atomic number of an element. It determines <span>chemical properties, which is why all atoms with proton count (atomic number) 6 are carbon</span>
They are called hydrocarbons
Because more than one substance was released (following a color change signifying a chemical reaction), the sample was indeed, a compound.