/in/foo.c: In function 'hcost':
/in/foo.c:165:25: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
  165 |         sprintf(tmp, "%d", curr);
      |                         ^
/in/foo.c:165:9: note: 'sprintf' output between 2 and 12 bytes into a destination of size 11
  165 |         sprintf(tmp, "%d", curr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:174:25: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
  174 |         sprintf(tmp, "%d", dest);
      |                         ^
/in/foo.c:174:9: note: 'sprintf' output between 2 and 12 bytes into a destination of size 11
  174 |         sprintf(tmp, "%d", dest);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c: In function 'A_Star':
/in/foo.c:108:29: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]
  108 |             sprintf(tmp, "%d", newitem.value);
      |                             ^
/in/foo.c:108:13: note: 'sprintf' output between 2 and 12 bytes into a destination of size 11
  108 |             sprintf(tmp, "%d", newitem.value);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:85:37: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized]
   85 |     int reachable[9], size, i, len, index;
      |                                     ^~~~~