Thank you very much. Should have taken care of that. Spent two days on this
silly thing
On Tue, Jun 2, 2020, 23:19 porker2008 wrote:
> Your code has runtime error when* N *is *1*
>
> Removing the following two lines (and also change the start index of the
> two loops from 2 to 1) should fix
Your code has runtime error when* N *is *1*
Removing the following two lines (and also change the start index of the
two loops from 2 to 1) should fix your problem:
*a1[1]=-1*a[1];*
*a2[1]=-2*a[1];*
They will cause out of bound error when N is 1
A full passing solution is attached for your