Hi,
you multiply a decision variable int by a decision variable boolean.
In https://www.linkedin.com/pulse/how-opl-alex-fleischer/
you could have a look at
How to multiply a decision variable by a boolean decision variable in CPLEX ?
if you add
using CP;
the error will go away.
regards