/in/foo.cc: In function 'int dis(int, int, int)':
/in/foo.cc:89:23: warning: 'ay' may be used uninitialized in this function [-Wmaybe-uninitialized]
else if(by==ay+1)
~~^~
/in/foo.cc:77:23: warning: 'ax' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(by==1 && ax==ay)
~~^~~~
/in/foo.cc:91:32: warning: 'by' may be used uninitialized in this function [-Wmaybe-uninitialized]
return array[bx][by];
^
/in/foo.cc:83:32: warning: 'bx' may be used uninitialized in this function [-Wmaybe-uninitialized]
return array[bx][by];
^