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

Also, study else if ()

And there is no setColor( ) function.