Village.cpp: In function 'int main()':
Village.cpp:35:31: error: no matching function for call to 'next_permutation(std::vector<long long int>&)'
35 | }while(next_permutation(perm));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Village.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:2971:5: note: candidate: 'template<class _BIter> bool std::next_permutation(_BIter, _BIter)'
2971 | next_permutation(_BidirectionalIterator __first,
| ^~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_algo.h:2971:5: note: template argument deduction/substitution failed:
Village.cpp:35:31: note: candidate expects 2 arguments, 1 provided
35 | }while(next_permutation(perm));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Village.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3004:5: note: candidate: 'template<class _BIter, class _Compare> bool std::next_permutation(_BIter, _BIter, _Compare)'
3004 | next_permutation(_BidirectionalIterator __first,
| ^~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_algo.h:3004:5: note: template argument deduction/substitution failed:
Village.cpp:35:31: note: candidate expects 3 arguments, 1 provided
35 | }while(next_permutation(perm));
| ^
Village.cpp:38:41: error: 'i' was not declared in this scope
38 | for(int j = 0; j < n; j++) cout << mx[i] + 1 << '\n';
| ^