Wrong Answer
/in/foo.cc: In function 'void bfs(int, int)':
/in/foo.cc:58:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else cout<<"Die"<<endl; exit(0);
^~~~
/in/foo.cc:58:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
else cout<<"Die"<<endl; exit(0);
^~~~