Failing Community College Class in High School

I’m taking a community college class (Calculus I) in my senior year of high school, but I am failing the class. The class won’t appear on my high school transcript, but UCs still require me to report it. Will it affect my admission at all?
With that being said, I can still get a withdrawal, would it be better to do that and show the W?

D’s and F’s are reasons for your provisional admission from the UC’s to be rescinded, so if you think you cannot pull that grade up to a C, I would take the W.