/in/foo.cc:9:1: error: expected initializer before 'int'
int i,j,k,n,m,fa[155],aans;
^~~
/in/foo.cc: In function 'double dis(int, int)':
/in/foo.cc:40:16: error: 'y' was not declared in this scope
+(y[xx]-y[yy])*(y[xx]-y[yy]));
^
/in/foo.cc: In function 'int findd(int)':
/in/foo.cc:51:5: error: 'fa' was not declared in this scope
if(fa[xx]==xx) return fa[xx];
^~
/in/foo.cc:52:9: error: 'fa' was not declared in this scope
return fa[xx]=findd(fa[xx]);
^~
/in/foo.cc: In function 'void unionn(int, int)':
/in/foo.cc:58:2: error: 'fa' was not declared in this scope
fa[fx]=fy;
^~
/in/foo.cc: In function 'void kruskal()':
/in/foo.cc:64:6: error: 'i' was not declared in this scope
for(i=1;i<=temp;i++)
^
/in/foo.cc:67:25: error: 'aans' was not declared in this scope
unionn(a[i].u,a[i].v),aans+=a[i].w,t++;
^~~~
/in/foo.cc:68:9: error: 'n' was not declared in this scope
if(t==n-1)
^
/in/foo.cc:69:10: error: 'aans' was not declared in this scope
{cout<<aans;
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:76:2: error: 'n' was not declared in this scope
n=rr();
^
/in/foo.cc:77:6: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
/in/foo.cc:78:2: error: 'fa' was not declared in this scope
fa[i]=i,x[i]=r(),y[i]=r();
^~
/in/foo.cc:78:17: error: 'r' was not declared in this scope
fa[i]=i,x[i]=r(),y[i]=r();
^
/in/foo.cc:78:19: error: 'y' was not declared in this scope
fa[i]=i,x[i]=r(),y[i]=r();
^
/in/foo.cc:80:6: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
/in/foo.cc:81:6: error: 'j' was not declared in this scope
for(j=1;j<=n;j++)
^
/in/foo.cc:85:22: error: 'solve' was not declared in this scope
a[temp].w=solve(i,j);
^