Choose the correct statement
(a) There exists a cfg generating the language $\{ ww \; \mid \; w\in (a+b)^+ \}$
(b) There exists a cfg generating the language $L= \{a^{n^2}\;\mid \; n\geq 1\}$
(c) There exists a cfg generating the language $\{a^nb^nc^n\;\mid \; n\geq 1\}$
(d) There exists a cfg generating the complement of the language $\{ ww \; \mid \; w\in (a+b)^+ \}$
The answer given is (d) .
But , in my opinion answer should be (a) . Am I wrong ? Please correct me.
CFLs are not closed under complement. So , how can the answer be (d) ?