Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I need help with my code.
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. :(
0 · ·