[Solved] compile it by suing the root


There is a problem in this line:

double v[k] = log(log(sqrt(e[k]+1)+1)+1);

in the first iteration k == 0 so you are trying to declare a zero sized array.
I dont understand the code enough to tell you how to fix it, but a zero sized array is definitely not what you want in that place.

Are you using roots interpreter? If yes, I strongly suggest you not to do it. I allows some very obscure stuff and its error messages can be rather confusing. Imho it is always better to compile the code. You will get better error messages and you can be sure that you are not using arcane features of the interpreter that no compiler would allow (for good reasons).

0

solved compile it by suing the root