Solved
Werner_EAnswer
25-Diamond I
February 15, 2023
If your for loop runs up to last(T) you possible can't access T[i+1.
Change the for loop to run just up to last(T)-1 and see if it helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.