Flickering Potentiometer

I don't understand. That code compiles perfectly fine.