dango3.cpp: In function 'void dfs(std::vector<int>)':
dango3.cpp:17:2: error: 'memset' was not declared in this scope
17 | memset(vis, 0, sizeof(vis));
| ^~~~~~
dango3.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include "dango3.h"
+++ |+#include <cstring>
2 |
dango3.cpp:18:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (i = 0; i < x.size(); i++)
| ~~^~~~~~~~~~
dango3.cpp:22:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (j = i + 1; j < x.size(); j++)
| ~~^~~~~~~~~~
dango3.cpp:37:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for (i = 0; i < x.size(); i++)
| ~~^~~~~~~~~~