Is this a compound or complex sentence and tell me if it is cc or sc

I must learn to not make comma mistakes, I must learn not to make capitalization mistakes.

This is a compound sentence. It is also a simple compound sentence (SC) as it consists of two independent clauses joined by a comma and coordinating conjunction "and".