The correct definition of a hydrocarbon is:
a large chain of carbons and hydrogens bonded together.
(Note: This definition could also include smaller structures, but generally, hydrocarbons refer to any organic compound consisting entirely of hydrogen and carbon.)