foo.cc: In function 'int main()':
foo.cc:49:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:50:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf("%lf%lf", &ax[i], &ay[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:53:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
~~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'void dijkstra(int, int, bool)':
foo.cc:34:14: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
v[k] = 0;
~~~~~^~~