Answer
Hydrocarbons contain atoms of Carbon and hydrogen.
Alcohols, ethers, Carboxylic acids, Aldehyde and Ketones- they contain C, H and O.
The organic compounds contain only Nitrogen, Carbon, hydrogen are amines group.
Work Step by Step
Hydrocarbons have the general formula of : $C_{x}H_{y}$.
So, the hydrocarbons contain C and H atoms.
Alcohols: General formula- $C_{n}H_{2n+2}O$ general representation of Alcohols are $R-OH$.
Ethers; General formula same as alcohols. general representation: $R-O-R$
Carboxylic acid: General formula $C_{n}H_{2n}O_{2}$
Aldehyde & ketone general formula: $C_{n}H_{2n}O$
so, they all have C, H & O in them.
Amines: general representation : $R-NH_{2}$ (primary amine)
So, they contains C, H and N.
Note: R means Alkyl group for example $-CH_{3}$ group etc.