Runtime Error
/in/foo.cc: In function 'void search(int, int)':
/in/foo.cc:44:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=1;j<=n;j++)
^~~
/in/foo.cc:59:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if(xiao==0&&d!=0) bottom++;
^~