F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]);
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 14:32:48, Gzip enabled