art.cpp: In function 'void solve(ll)':
art.cpp:22:25: error: could not convert 'v' from 'vector<long long int>' to 'vector<int>'
22 | int t = publish(v);
| ^
| |
| vector<long long int>
art.cpp:25:29: error: no matching function for call to 'next_permutation(std::vector<long long int>&)'
25 | 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:25:29: note: candidate expects 2 arguments, 1 provided
25 | 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:25:29: note: candidate expects 3 arguments, 1 provided
25 | while(next_permutation(v));
| ^
art.cpp:26:12: error: could not convert 'v' from 'vector<long long int>' to 'vector<int>'
26 | answer(v);
| ^
| |
| vector<long long int>
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) {
| ~~~~~~~~~^~~~