/in/foo.cc: In function 'void attack()':
/in/foo.cc:142:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if ((ant[i].y-y[k])*(ant[i].y-ant[wei].y)<0&&ant[i].x==x[k])
^~
/in/foo.cc:144:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (ant[i].blood<0) mayi--;
^~
/in/foo.cc:150:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if ((ant[i].x-x[k])*(ant[i].x-ant[wei].x)<0&&ant[i].y==y[k])
^~
/in/foo.cc:152:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (ant[i].blood<0) mayi--;
^~
/in/foo.cc:156:9: warning: 'wei' may be used uninitialized in this function [-Wmaybe-uninitialized]
check(k,wei);
~~~~~^~~~~~~