ERR_SOME_ARRAY_ERROR (4053) - Hello guys please assist

 
// Define the size of the array
#define ARRAY_SIZE 10

int main()
{
    int myArray[ARRAY_SIZE];  // Declare an integer array with 10 elements

    // Initialize the array elements
    for (int i = 0; i < ARRAY_SIZE; i++)
    {
        myArray[i] = i * 2;
    }

    // Attempt to access an element outside the array bounds
    int indexToAccess = ARRAY_SIZE + 5;
    int value = myArray[indexToAccess];

    // Print the accessed value (this line won't be reached due to the error)
    Print("Value at index ", indexToAccess, ": ", value);

    return(0);
}
Greetings all, I am learning mql4 newly and am running into this error ERR_SOME_ARRAY_ERROR (4053) .. i have tried but cannot locate my issue
 
Your topic has been moved to the section: MQL4 and MetaTrader 4 — Please consider which section is most appropriate — https://www.mql5.com/en/forum/443428#comment_49114884
 

If your array is sized to ARRAY_SIZE, then obviously accessing ARRAY_SIZE + 5 will fail, because it is out of the array's range ...

// Attempt to access an element outside the array bounds
int indexToAccess = ARRAY_SIZE + 5;
int value = myArray[indexToAccess];

Why are you even attempting to "access an element outside the array bounds" when you know that is going to fail?