zagonetka.cpp: In function 'void Dfs(int, std::vector<int>&)':
zagonetka.cpp:22:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < nei[v].size(); ++i)
~~^~~~~~~~~~~~~~~
zagonetka.cpp: In function 'bool Possible(int)':
zagonetka.cpp:41:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); ++i)
~~^~~~~~~~~~
zagonetka.cpp: In function 'int main()':
zagonetka.cpp:79:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < nei[v].size(); ++i)
~~^~~~~~~~~~~~~~~
zagonetka.cpp:82:9: error: 'ans' was not declared in this scope
if (ans[v] >= ans[to])
^~~
zagonetka.cpp:82:9: note: suggested alternative: 'abs'
if (ans[v] >= ans[to])
^~~
abs
zagonetka.cpp:89:8: error: 'ans' was not declared in this scope
r = ans;
^~~
zagonetka.cpp:89:8: note: suggested alternative: 'abs'
r = ans;
^~~
abs
zagonetka.cpp:93:27: error: 'ans' was not declared in this scope
} while(next_permutation(ans.begin(), ans.end());
^~~
zagonetka.cpp:93:27: note: suggested alternative: 'abs'
} while(next_permutation(ans.begin(), ans.end());
^~~
abs
zagonetka.cpp:93:50: error: expected ')' before ';' token
} while(next_permutation(ans.begin(), ans.end());
^
zagonetka.cpp: In instantiation of 'std::ostream& operator<<(std::ostream&, const std::vector<T>&) [with T = int; std::ostream = std::basic_ostream<char>]':
zagonetka.cpp:43:10: required from here
zagonetka.cpp:15:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < a.size(); ++i)