Fixed assignment with addition and substraction of variables in arrays