Please read the first post of Please read: make it easier to help you - #81.
You have multiple errors in your code, and the error isn’t related to the line you are pointing at.
You should read my answer to your other question because you aren’t defining your variables correctly: Bilevel JuMP - #2 by odow.