art.cpp: In function 'void solve(int)':
art.cpp:23:29: error: no matching function for call to 'next_permutation(std::vector<int>&)'
23 | while(next_permutation(v));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from art.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:
art.cpp:23:29: note: candidate expects 2 arguments, 1 provided
23 | while(next_permutation(v));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from art.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:
art.cpp:23:29: note: candidate expects 3 arguments, 1 provided
23 | while(next_permutation(v));
| ^
interface.cpp: In function 'int publish(std::vector<int>)':
interface.cpp:20:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | if(v.size() != N) {
| ~~~~~~~~~^~~~
interface.cpp: In function 'void answer(std::vector<int>)':
interface.cpp:36:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | if(v.size() != N) {
| ~~~~~~~~~^~~~