I have an assigment where I have to make an algorithm and a program that creates a symetrical array as well as performs some functions in an order. Anyway, I thought I was doing well, I had a code example for my assignment where the program generates a random symetrical array, then arranges the array elements as a vector and performs an element search.
There is an image of the example and the result pascal should output in the attachment, so you can understand better what I am trying to say here.
The problem is, I am trying to put the example code into my program code, I have them identical, BUT pascal keeps giving me this error:
1_livabrege.pas(71,12) Error: Illegal assignment to for-loop variable "i"
I can't understant what the problem is, as the code is exactly the same as in the example, but I can't compile so I'm kind of stuck here. :/
Hope someone can enlighten me about what am I doing wrong...
P.S. Sorry if you have a hard time understanding what I am trying to say, my native language is not English, so I don't know the programming terminology. :(