Compiler output
prog.cpp: In function 'int countDistance(char, char)':
prog.cpp:37:43: warning: 'poz2y' may be used uninitialized in this function [-Wmaybe-uninitialized]
return abs(poz1x - poz2x) + abs(poz1y - poz2y);
^
prog.cpp:37:22: warning: 'poz2x' may be used uninitialized in this function [-Wmaybe-uninitialized]
return abs(poz1x - poz2x) + abs(poz1y - poz2y);
^
prog.cpp:37:43: warning: 'poz1y' may be used uninitialized in this function [-Wmaybe-uninitialized]
return abs(poz1x - poz2x) + abs(poz1y - poz2y);
^
prog.cpp:37:22: warning: 'poz1x' may be used uninitialized in this function [-Wmaybe-uninitialized]
return abs(poz1x - poz2x) + abs(poz1y - poz2y);
^