You will need to show the code that gives that error
In reply to Re^3: Adding an element to an array by poj in thread Adding an element to an array by Anonymous Monk