thank you, it works without defining the solver but as @odow just mentioned, when I define the Cbc as a solver, it does not support this kind of constraint and gives this error:
model = Model(Cbc.Optimizer)
T = 3
@variable(model, x[1:T]>=0, Int)
@constraint(model, xx[t=1:T], complements((x[((t) % T) + 1] + x[((t+1) % T) + 1]), x[t]))
>>> Constraints of type MathOptInterface.VectorAffineFunction{Float64}-in-MathOptInterface.Complements are not supported by the solver and there are no bridges that can reformulate it into supported constraints.