For C6H12, the GCF of 6 and 12 is 6. Dividing both subscripts by 6 gives us the empirical formula CH2.
For C6H14, the GCF of 6 and 14 is 2. Dividing both subscripts by 2 gives us the empirical formula C3H7.
Therefore, C6H12 and C6H14 do not have the same empirical formula.