0_0_13468272_13006.cpp:3:11: error: 'X' was not declared in this scope
double p0[X][X],p1[X][X],p2[X][X];
^
0_0_13468272_13006.cpp:3:14: error: 'X' was not declared in this scope
double p0[X][X],p1[X][X],p2[X][X];
^
0_0_13468272_13006.cpp:3:20: error: 'X' was not declared in this scope
double p0[X][X],p1[X][X],p2[X][X];
^
0_0_13468272_13006.cpp:3:23: error: 'X' was not declared in this scope
double p0[X][X],p1[X][X],p2[X][X];
^
0_0_13468272_13006.cpp:3:29: error: 'X' was not declared in this scope
double p0[X][X],p1[X][X],p2[X][X];
^
0_0_13468272_13006.cpp:3:32: error: 'X' was not declared in this scope
double p0[X][X],p1[X][X],p2[X][X];
^
0_0_13468272_13006.cpp:4:11: error: 'X' was not declared in this scope
double dp[X][X];
^
0_0_13468272_13006.cpp:4:14: error: 'X' was not declared in this scope
double dp[X][X];
^
0_0_13468272_13006.cpp: In function 'int main()':
0_0_13468272_13006.cpp:10:30: error: 'p0' was not declared in this scope
scanf("%lf%lf%lf",&p0[i][j],&p1[i][j],&p2[i][j]);
^
0_0_13468272_13006.cpp:10:40: error: 'p1' was not declared in this scope
scanf("%lf%lf%lf",&p0[i][j],&p1[i][j],&p2[i][j]);
^
0_0_13468272_13006.cpp:10:50: error: 'p2' was not declared in this scope
scanf("%lf%lf%lf",&p0[i][j],&p1[i][j],&p2[i][j]);
^
0_0_13468272_13006.cpp:13:5: error: 'dp' was not declared in this scope
dp[i][j]=p0[i][j]*2+p1[i][j]*(dp[i][j+1]+2)+p2[i][j]*(dp[i+1][j]+2);
^
0_0_13468272_13006.cpp:13:14: error: 'p0' was not declared in this scope
dp[i][j]=p0[i][j]*2+p1[i][j]*(dp[i][j+1]+2)+p2[i][j]*(dp[i+1][j]+2);
^
0_0_13468272_13006.cpp:13:25: error: 'p1' was not declared in this scope
dp[i][j]=p0[i][j]*2+p1[i][j]*(dp[i][j+1]+2)+p2[i][j]*(dp[i+1][j]+2);
^
0_0_13468272_13006.cpp:13:49: error: 'p2' was not declared in this scope
dp[i][j]=p0[i][j]*2+p1[i][j]*(dp[i][j+1]+2)+p2[i][j]*(dp[i+1][j]+2);
^
0_0_13468272_13006.cpp:17:20: error: 'dp' was not declared in this scope
printf("%.3lf\n",dp[1][1]);
^
|