Which of the following will not have same general formula?

(1) alkynes and alkadienes
(2) carboxylic acids an esters
(3) alkenes and cycloalkanes
(4) benzene and acetylene