We consider the one-dimensional (1D) cubic-quintic Gross-Pitaevskii (GP) equation, which governs the dynamics of Bose-Einstein condensate (BEC) matter waves with time-varying scattering length and loss/gain of atoms in a harmonic trapping potential. We derive the integrability conditions and the compensation condition for the 1D GP equation and obtain, with the help of a cubic-quintic nonlinear Schrödinger (NLS) equation with self-steepening and self-frequency shift, exact analytical solitonlike solutions with the corresponding frequency chirp which describe the dynamics of femtosecond solitons and double-kink solitons propagating on a vanishing background. Our investigation shows that under the compensation condition, the matter wave solitons maintain a constant amplitude, the amplitude of the frequency chirp depends on the scattering length, while the motion of both the matter wave solitons and the corresponding chirp depend on the external trapping potential. More interesting, the frequency chirps are localized and their feature depends on the sign of the self-steepening parameter. Our study also shows that our exact solutions can be used to describe the compression of matter wave solitons when the absolute value of the s-wave scattering length increases with time.