0_0_39544844_10555.cpp: In function 'double prim()':
0_0_39544844_10555.cpp:4:24: error: 'n' was not declared in this scope
4 | for(int i=1;i<=n;i++){
| ^
0_0_39544844_10555.cpp:5:17: error: 'f' was not declared in this scope
5 | f[i]=0;
| ^
0_0_39544844_10555.cpp:6:17: error: 'dis' was not declared in this scope; did you mean 'div'?
6 | dis[i]=999999999;
| ^~~
| div
0_0_39544844_10555.cpp:7:17: error: 'vis' was not declared in this scope
7 | vis[i]=0;
| ^~~
0_0_39544844_10555.cpp:9:25: error: 'd' was not declared in this scope
9 | d[i][j]=0;
| ^
0_0_39544844_10555.cpp:12:9: error: 'f' was not declared in this scope
12 | f[1]=1;
| ^
0_0_39544844_10555.cpp:13:9: error: 'dis' was not declared in this scope; did you mean 'div'?
13 | dis[1]=0;
| ^~~
| div
0_0_39544844_10555.cpp:15:23: error: 'n' was not declared in this scope
15 | for(int i=1;i<n;i++){
| ^
0_0_39544844_10555.cpp:16:17: error: 'mi' was not declared in this scope; did you mean 'i'?
16 | mi=0;
| ^~
| i
0_0_39544844_10555.cpp:23:17: error: 'd' was not declared in this scope
23 | d[vis[mi]][mi]=d[mi][vis[mi]]=1;
| ^
0_0_39544844_10555.cpp:23:19: error: 'vis' was not declared in this scope
23 | d[vis[mi]][mi]=d[mi][vis[mi]]=1;
| ^~~
0_0_39544844_10555.cpp:25:45: error: 'mp' was not declared in this scope
25 | if(f[j]==0&&dis[mi]+mp[mi][j]<dis[j]){
| ^~
0_0_39544844_10555.cpp:30:33: error: 'dp' was not declared in this scope
30 | dp[j][mi]=max(dp[j][mi],mp[vis[mi]][mi]);
| ^~
0_0_39544844_10555.cpp:30:57: error: 'mp' was not declared in this scope
30 | dp[j][mi]=max(dp[j][mi],mp[vis[mi]][mi]);
| ^~
0_0_39544844_10555.cpp: In function 'int main()':
0_0_39544844_10555.cpp:37:14: error: 'T' was not declared in this scope
37 | cin>>T;
| ^
0_0_39544844_10555.cpp:39:22: error: 'n' was not declared in this scope
39 | cin>>n;
| ^
0_0_39544844_10555.cpp:41:30: error: 'x' was not declared in this scope
41 | cin>>x[i]>>y[i]>>p[i];
| ^
0_0_39544844_10555.cpp:41:36: error: 'y' was not declared in this scope
41 | cin>>x[i]>>y[i]>>p[i];
| ^
0_0_39544844_10555.cpp:41:42: error: 'p' was not declared in this scope
41 | cin>>x[i]>>y[i]>>p[i];
| ^
0_0_39544844_10555.cpp:44:46: error: 'mp' was not declared in this scope
44 | for(int j=1;j<=n;j++)mp[i][j]=sqrt((x[i]+0.0-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]))
| ^~
0_0_39544844_10555.cpp:44:61: error: 'x' was not declared in this scope
44 | for(int j=1;j<=n;j++)mp[i][j]=sqrt((x[i]+0.0-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]))
| ^
0_0_39544844_10555.cpp:44:89: error: 'y' was not declared in this scope
44 | for(int j=1;j<=n;j++)mp[i][j]=sqrt((x[i]+0.0-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]))
| ^
0_0_39544844_10555.cpp:46:17: error: 'sum' was not declared in this scope
46 | sum=prim();
| ^~~
|