Array required error code on every code i write

 
Hi guys could anyone please let me know why i keep getting this error code? i am trying to follow a udemy course but all the codes i write get the same error.
 
14634779:
Hi guys could anyone please let me know why i keep getting this error code? i am trying to follow a udemy course but all the codes i write get the same error.
Post a sample with line 16, included.
 
14634779: please let me know why

Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
     How To Ask Questions The Smart Way. (2004)
          Be precise and informative about your problem

We can't see your broken code.

Always post all relevant code (using Code button) or attach the source file.

 
  
     MqlRates PriceInfo[];        // Think of the array as a store house or sorting center for the data you wish to collect
     ArraySetAsSeries(PriceInfo,true); 
     CopyRates(_Symbol,_Period,0, 3,PriceInfo); //This copies the data from the specified symbol and timeframe into the array "PriceInfo".
     Print (PriceInfo[0].close); //this prints the most recent candle close
14634779
:

Hi guys could anyone please let me know why i keep getting this error code? i am trying to follow a udemy course but all the codes i write get the same error.

You probably did not create the array right. Here's an example of an array


#code not compiled or tested