0_0_32440810_3395.cpp:21:9: error: 'N' was not declared in this scope
int n,a[N];
^
0_0_32440810_3395.cpp:22:11: error: 'N' was not declared in this scope
double lx[N][N],rx[N][N],val[N][N];
^
0_0_32440810_3395.cpp:22:14: error: 'N' was not declared in this scope
double lx[N][N],rx[N][N],val[N][N];
^
0_0_32440810_3395.cpp:22:20: error: 'N' was not declared in this scope
double lx[N][N],rx[N][N],val[N][N];
^
0_0_32440810_3395.cpp:22:23: error: 'N' was not declared in this scope
double lx[N][N],rx[N][N],val[N][N];
^
0_0_32440810_3395.cpp:22:30: error: 'N' was not declared in this scope
double lx[N][N],rx[N][N],val[N][N];
^
0_0_32440810_3395.cpp:22:33: error: 'N' was not declared in this scope
double lx[N][N],rx[N][N],val[N][N];
^
0_0_32440810_3395.cpp:23:10: error: 'N' was not declared in this scope
double f[N][N];
^
0_0_32440810_3395.cpp:23:13: error: 'N' was not declared in this scope
double f[N][N];
^
0_0_32440810_3395.cpp:25:10: error: 'N' was not declared in this scope
abcd tmp[N];
^
0_0_32440810_3395.cpp:27:10: error: 'N' was not declared in this scope
double g[N];
^
0_0_32440810_3395.cpp: In function 'int main()':
0_0_32440810_3395.cpp:37:14: error: 'a' was not declared in this scope
cin>>a[i];
^
0_0_32440810_3395.cpp:49:10: error: 'val' was not declared in this scope
val[i][j]=2.0*sqrt(a*b);//最后结果ax+b/x>=2sqrt(ab);
^
0_0_32440810_3395.cpp:50:10: error: 'lx' was not declared in this scope
lx[i][j]=sqrt(b/a);//对应val的左面第一项的值(ax=b/x)求得x的值
^
0_0_32440810_3395.cpp:52:12: error: 'rx' was not declared in this scope
rx[i][j]=cur*lx[i][j];//对应奇偶项的右面第一个数
^
0_0_32440810_3395.cpp:54:12: error: 'rx' was not declared in this scope
rx[i][j]=cur/lx[i][j];
^
0_0_32440810_3395.cpp:55:14: error: '::a' has not been declared
cur=::a[j]/cur;//系数的关系,多写几项就发现,(i--j)的偶数项是,a的奇数项的积/(a的偶数项的积*x)
^
0_0_32440810_3395.cpp:62:10: error: 'f' was not declared in this scope
f[i][j]=1e30;
^
0_0_32440810_3395.cpp:64:10: error: 'f' was not declared in this scope
f[1][i]=val[1][i];
^
0_0_32440810_3395.cpp:64:18: error: 'val' was not declared in this scope
f[1][i]=val[1][i];
^
0_0_32440810_3395.cpp:69:8: error: 'tmp' was not declared in this scope
tmp[++tot]=abcd(rx[j][i],f[j][i]);
^
0_0_32440810_3395.cpp:69:24: error: 'rx' was not declared in this scope
tmp[++tot]=abcd(rx[j][i],f[j][i]);
^
0_0_32440810_3395.cpp:69:33: error: 'f' was not declared in this scope
tmp[++tot]=abcd(rx[j][i],f[j][i]);
^
0_0_32440810_3395.cpp:71:12: error: 'tmp' was not declared in this scope
sort(tmp+1,tmp+tot+1);
^
0_0_32440810_3395.cpp:72:7: error: 'g' was not declared in this scope
g[tot+1]=1e30;
^
0_0_32440810_3395.cpp:81:19: error: 'a' was not declared in this scope
double tem=a[i]/lx[i+1][k];
^
0_0_32440810_3395.cpp:81:24: error: 'lx' was not declared in this scope
double tem=a[i]/lx[i+1][k];
^
0_0_32440810_3395.cpp:83:8: error: 'f' was not declared in this scope
f[i+1][k]=val[i+1][k]+g[iter];//枚举右边第一个大于号的位置,更新区间最优答案
^
0_0_32440810_3395.cpp:83:18: error: 'val' was not declared in this scope
f[i+1][k]=val[i+1][k]+g[iter];//枚举右边第一个大于号的位置,更新区间最优答案
^
0_0_32440810_3395.cpp:91:21: error: 'f' was not declared in this scope
ans=min(ans,f[i][n]);
^
|