Using signal as array index in Circom

Hi, is there anyway I can use input signal as index in Circom? I always get the error “Non-quadratic constraint was detected statically, using unknown index will cause the constraint to be non-quadratic”