naboj.cpp: In function 'int main()':
naboj.cpp:32:5: error: 'memset' was not declared in this scope
32 | memset(vis, 0, sizeof(vis));
| ^~~~~~
naboj.cpp:6:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
5 | #include <queue>
+++ |+#include <cstring>
6 | using namespace std;
naboj.cpp:52:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | for(int i = 0; i < v[cur].size(); i++) {
| ~~^~~~~~~~~~~~~~~
naboj.cpp:73:18: warning: comparison of integer expressions of different signedness: 'std::stack<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
73 | if (s.size() == n) {
| ~~~~~~~~~^~~~