foo.cc: In function 'int main()':
foo.cc:45:2: error: 'memset' was not declared in this scope
45 | memset(map, -1, sizeof(map));
| ^~~~~~
foo.cc:6:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
5 | #include<queue>
+++ |+#include <cstring>
6 | using namespace std;
foo.cc:46:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d\n%d\n", &n,&m);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:49:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
49 | scanf("%d %d %s\n", &q[i].x, &q[i].y, q[i].s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务