/in/foo.cc: In function 'void prim()':
/in/foo.cc:35:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int j=1;j<=n;j++)
^~~
/in/foo.cc:41:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if (min==1000000000.0) break;
^~
/in/foo.cc:23:14: warning: variable 'dir' set but not used [-Wunused-but-set-variable]
int f[1005],dir[1005],k;
^~~
/in/foo.cc:42:7: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
f[k]=1;
~~~~^~