Whats is wrong here? I am trying to make a code that combines LDR and RGB LED

This one is not like the others.

Didn't the compiler complain about the else?