Is CP a medical or dental problem?

Dental or Medical. If it's Chronic Pulpitis (CP) it is dental. Pulpitis can affect baby teeth and permanent teeth alike. If it's the abbreviation for Cerebral Palsy; costophrenic, it is medical.
Medical. If cerebral palsy is a what you mean by cp, it is a medical problem and not a dental problem.