I am trying to run a C source code about Evolutionary Programming.
I get these errors after the compilation.
Anyone can help me to fix it? I am using VC 2005.
I need help urgently.
Here is the error part:--
error C2057: expected constant expressionCode:double function14(int n) { double value; int i,j; double sum1,sum2,prod; double a[n][25]; for(j=0;j<25;j=j+5) { a[0][j]=-32.0; a[0][j+1]=-16.0; a[0][j+2]=0.0; a[0][j+3]=16.0; a[0][j+4]=32.0; }
error C2466: cannot allocate an array of constant size 0
error C2133: 'a' : unknown size
Thanks everyone