0_0_25009083_30971.cpp:1:10: error: 'N' was not declared in this scope
double f[N][N];
^
0_0_25009083_30971.cpp:1:13: error: 'N' was not declared in this scope
double f[N][N];
^
0_0_25009083_30971.cpp:2:7: error: 'N' was not declared in this scope
int a[N],b[N],n,m;
^
0_0_25009083_30971.cpp:2:12: error: 'N' was not declared in this scope
int a[N],b[N],n,m;
^
0_0_25009083_30971.cpp: In function 'void DP()':
0_0_25009083_30971.cpp:12:13: error: 'FOR1' was not declared in this scope
FOR1(i,n) FOR0(j,m+1) f[i][j]=-inf;
^
0_0_25009083_30971.cpp:14:15: error: 'a' was not declared in this scope
for(i=0;i*a[1]<=m;i++) f[1][i*a[1]]=b[1]*i-4.9*i*i;
^
0_0_25009083_30971.cpp:14:28: error: 'f' was not declared in this scope
for(i=0;i*a[1]<=m;i++) f[1][i*a[1]]=b[1]*i-4.9*i*i;
^
0_0_25009083_30971.cpp:14:41: error: 'b' was not declared in this scope
for(i=0;i*a[1]<=m;i++) f[1][i*a[1]]=b[1]*i-4.9*i*i;
^
0_0_25009083_30971.cpp:15:50: error: 'a' was not declared in this scope
for(i=2;i<n;i++) for(j=0;j<=m;j++) for(k=0;k*a[i]+j<=m;k++)
^
0_0_25009083_30971.cpp:17:14: error: 'f' was not declared in this scope
temp=f[i-1][j]+b[i]*k-4.9*k*k;
^
0_0_25009083_30971.cpp:17:24: error: 'b' was not declared in this scope
temp=f[i-1][j]+b[i]*k-4.9*k*k;
^
0_0_25009083_30971.cpp: In function 'double cal()':
0_0_25009083_30971.cpp:25:21: error: 'b' was not declared in this scope
if(n==1) return b[1]*(1.0*m/a[1])-4.9*sqr(1.0*m/a[1]);
^
0_0_25009083_30971.cpp:25:33: error: 'a' was not declared in this scope
if(n==1) return b[1]*(1.0*m/a[1])-4.9*sqr(1.0*m/a[1]);
^
0_0_25009083_30971.cpp:25:57: error: 'sqr' was not declared in this scope
if(n==1) return b[1]*(1.0*m/a[1])-4.9*sqr(1.0*m/a[1]);
^
0_0_25009083_30971.cpp:29:17: error: 'inf' was not declared in this scope
double ans=-inf,temp,t;
^
0_0_25009083_30971.cpp:30:13: error: 'FOR1' was not declared in this scope
FOR1(i,n)
^
0_0_25009083_30971.cpp: In function 'int main()':
0_0_25009083_30971.cpp:48:10: error: 'rush' was not declared in this scope
rush()
^
|