foo.cc: In function 'void loopAll(int, int)':
foo.cc:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
23 | for(int j=0;j<sizeof(prime)/sizeof(int);j++) {
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'void dfs()':
foo.cc:60:13: error: 'memcpy' was not declared in this scope
60 | memcpy(v_ans, v, sizeof(v));
| ^~~~~~
foo.cc:4:1: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <unordered_map>
+++ |+#include <cstring>
4 | int prime[] = {
foo.cc:71:25: error: 'memcpy' was not declared in this scope
71 | memcpy(v_ans, v, sizeof(v));
| ^~~~~~
foo.cc:71:25: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
foo.cc: In function 'int main()':
foo.cc:86:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
86 | for(int j=0;j<sizeof(prime)/sizeof(int);j++) {
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务