I am sad but you smile. This is the sentence.

A ) Complex

B ) Compound ✅

C ) Optative

D ) Assertive