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

They went to the store, they needed some milk.

This is a compound sentence because it contains two independent clauses: "They went to the store" and "they needed some milk." It is also a comma splice error because the independent clauses are joined by a comma instead of a coordinating conjunction or a punctuation mark (such as a semicolon or period) that would properly separate them.