Wrong Answer
/in/foo.cc: In function 'void mst()':
/in/foo.cc:29:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(re int j=1;j<=n;++j)
^~~
/in/foo.cc:32:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
book[startx]=false;
^~~~