0_0_36088849_29769.cpp:14:1: error: expected initializer before 'int'
int n,x[N],y[N],p[N],f[N];
^
0_0_36088849_29769.cpp: In function 'double get(int, int)':
0_0_36088849_29769.cpp:17:12: error: 'x' was not declared in this scope
int dx=x[a]-x[b];
^
0_0_36088849_29769.cpp:18:12: error: 'y' was not declared in this scope
int dy=y[a]-y[b];
^
0_0_36088849_29769.cpp: In function 'int find(int)':
0_0_36088849_29769.cpp:22:8: error: 'f' was not declared in this scope
if(f[x]!=x) f[x]=find(f[x]);
^
0_0_36088849_29769.cpp:23:12: error: 'f' was not declared in this scope
return f[x];
^
0_0_36088849_29769.cpp: In function 'void add(int, int, double)':
0_0_36088849_29769.cpp:26:14: error: 'w' was not declared in this scope
e[idx]=b,w[idx]=c,ne[idx]=h[a],h[a]=idx++;
^
0_0_36088849_29769.cpp: In function 'void dfs(int, int, double, int*)':
0_0_36088849_29769.cpp:32:37: error: 'w' was not declared in this scope
if(j!=pre) dfs(j,u,max(maxd,w[i]),d);
^
0_0_36088849_29769.cpp: In function 'int main()':
0_0_36088849_29769.cpp:42:21: error: 'n' was not declared in this scope
scanf("%d",&n);
^
0_0_36088849_29769.cpp:43:47: error: 'x' was not declared in this scope
for(int i=1;i<=n;i++) scanf("%d%d%d",&x[i],&y[i],&p[i]);
^
0_0_36088849_29769.cpp:43:53: error: 'y' was not declared in this scope
for(int i=1;i<=n;i++) scanf("%d%d%d",&x[i],&y[i],&p[i]);
^
0_0_36088849_29769.cpp:43:59: error: 'p' was not declared in this scope
for(int i=1;i<=n;i++) scanf("%d%d%d",&x[i],&y[i],&p[i]);
^
0_0_36088849_29769.cpp:44:31: error: 'f' was not declared in this scope
for(int i=1;i<=n;i++) f[i]=i;
^
0_0_36088849_29769.cpp:56:17: error: 'f' was not declared in this scope
f[fa]=fb;
^
0_0_36088849_29769.cpp:67:30: error: 'p' was not declared in this scope
res=max(res,(p[a]+p[b])/(sum-w));
^
0_0_36088849_29769.cpp:70:30: error: 'p' was not declared in this scope
res=max(res,(p[a]+p[b])/(sum-dist[a][b]));
^
|