A question is given as
Consider a fluid of density $ \rho(x, y, z, t) $ which moves with velocity $v(x, y, z, t) $ without sources or sink. Show that $ \nabla \cdot \vec J + \frac{\partial \rho }{\partial t} = 0 ;$ where $ \vec J = \rho \vec v \hspace{0.5 cm}$ ( $\vec v$ being velocity of fluid and $ \rho $ density).
In the solution it assumes, $ - \nabla \cdot \vec J $ is the change in $ \vec J$ within the volume element which should be equal to $ \frac{\partial \rho}{\partial t}$ (why equal?). I don't understand this part and I doubt if this question is correct. I think the question should be $$ \rho (\nabla \cdot \vec v) + \frac{\partial \rho}{\partial t} = 0$$ Is the question correct? If it's correct help me to understand the solution (if it's right) or please provide me correct answer. Thank you!!