0_0_21056535_7361.cpp: In function 'int getdis(int, int)':
0_0_21056535_7361.cpp:5:17: error: 'w' was not declared in this scope
return (abs(w[a].x-w[b].x)+abs(w[a].y-w[b].y)+abs(w[a].z-w[b].z));
^
0_0_21056535_7361.cpp:5:30: error: 'abs' was not declared in this scope
return (abs(w[a].x-w[b].x)+abs(w[a].y-w[b].y)+abs(w[a].z-w[b].z));
^
0_0_21056535_7361.cpp: In function 'int Zhu_Liu(int, int, int)':
0_0_21056535_7361.cpp:10:35: error: 'in' was not declared in this scope
for (int i=0; i<nv; i++) in[i]=INF;
^
0_0_21056535_7361.cpp:10:41: error: 'INF' was not declared in this scope
for (int i=0; i<nv; i++) in[i]=INF;
^
0_0_21056535_7361.cpp:12:19: error: 'e' was not declared in this scope
int u=e[i].u;
^
0_0_21056535_7361.cpp:14:27: error: 'in' was not declared in this scope
if (e[i].cost<in[v] && u!=v) {
^
0_0_21056535_7361.cpp:15:17: error: 'pre' was not declared in this scope
pre[v]=u;
^
0_0_21056535_7361.cpp:22:17: error: 'in' was not declared in this scope
if (in[i]==INF) return -1;
^
0_0_21056535_7361.cpp:22:24: error: 'INF' was not declared in this scope
if (in[i]==INF) return -1;
^
0_0_21056535_7361.cpp:25:16: error: 'id' was not declared in this scope
memset(id, -1, sizeof(id));
^
0_0_21056535_7361.cpp:25:34: error: 'memset' was not declared in this scope
memset(id, -1, sizeof(id));
^
0_0_21056535_7361.cpp:26:16: error: 'vis' was not declared in this scope
memset(vis, -1, sizeof(vis));
^
0_0_21056535_7361.cpp:27:9: error: 'in' was not declared in this scope
in[root]=0;
^
0_0_21056535_7361.cpp:33:19: error: 'pre' was not declared in this scope
v=pre[v];
^
0_0_21056535_7361.cpp:36:26: error: 'pre' was not declared in this scope
for(int u=pre[v] ; u!= v; u=pre[u]) {
^
0_0_21056535_7361.cpp:49:19: error: 'e' was not declared in this scope
int v=e[i].v;
^
0_0_21056535_7361.cpp: In function 'void solve()':
0_0_21056535_7361.cpp:62:30: error: 'n' was not declared in this scope
while(scanf("%d%d%d%d", &n, &x, &y, &z)) {
^
0_0_21056535_7361.cpp:62:34: error: 'x' was not declared in this scope
while(scanf("%d%d%d%d", &n, &x, &y, &z)) {
^
0_0_21056535_7361.cpp:62:38: error: 'y' was not declared in this scope
while(scanf("%d%d%d%d", &n, &x, &y, &z)) {
^
0_0_21056535_7361.cpp:62:42: error: 'z' was not declared in this scope
while(scanf("%d%d%d%d", &n, &x, &y, &z)) {
^
0_0_21056535_7361.cpp:62:43: error: 'scanf' was not declared in this scope
while(scanf("%d%d%d%d", &n, &x, &y, &z)) {
^
0_0_21056535_7361.cpp:67:13: error: 'w' was not declared in this scope
w[i].x=a, w[i].y=b, w[i].z=c;
^
0_0_21056535_7361.cpp:74:17: error: 'e' was not declared in this scope
e[cnt].u=i, e[cnt].v=b, e[cnt].cost=getdis(i, b)*y;
^
0_0_21056535_7361.cpp:75:21: error: 'w' was not declared in this scope
if (w[i].z<w[b].z) e[cnt].cost+=z;
^
0_0_21056535_7361.cpp:80:13: error: 'e' was not declared in this scope
e[cnt].u=n, e[cnt].v=i;
^
0_0_21056535_7361.cpp:81:25: error: 'w' was not declared in this scope
e[cnt].cost=w[i].z*x;
^
0_0_21056535_7361.cpp:85:44: error: 'printf' was not declared in this scope
if (ans==-1) printf("poor XiaoA\n");
^
0_0_21056535_7361.cpp:87:31: error: 'printf' was not declared in this scope
printf("%d\n", ans);
^
|