PROS Potentiometer Initialization

I am using PROS to program my robot and I am trying to use a potentiometer for our autonomous selector because our global variables were not working. I am having trouble initializing the potentiometer. When I go and try to initialize it, I am met with an error that says, “no matching constructor for initialization of ‘pros::ADIPotentiometer’ (aka ‘pros::ADIAnalogIn’)” I will leave my code below, any and all help would be greatly appreciated. I haved looked at the PROS API for initializing the potentiometer and did as it instructed but that did not help.


pros::ADIPotentiometer sensor(POTENTIOMETER_PORT);

Does this error show up when you attempt to build the project? Or just in the editor?

Nevermind, I was able to fix the problem.