The hydrocarbon which forms a red precipitate with ammoniacal solution of copper chloride is acetylene.
HC≡CH
Acetylene
Terminal alkynes (including acetylene) form a red precipitate of copper acetylides when it is passed through ammoniacal cuprous chloride solution.
R−C≡C−H+CuCl+NH3→
R−C≡C−Cu+NH4Cl