Ioi.cpp: In function 'long long int Ioi(int, int, int*, int*, int, int, int)':
Ioi.cpp:82:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < path.size(); ++i) {
~~^~~~~~~~~~~~~
Ioi.cpp:92:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == path.size()-1) {
~~^~~~~~~~~~~~~~~~
Ioi.cpp:95:59: error: no matching function for call to 'find(std::vector<long long int>::iterator, std::vector<long long int>::iterator)'
if(find(adj[path[prev]].begin(), adj[path[prev]].end()) == adj[path[prev]].end()) while(true);
^
In file included from /usr/include/c++/7/bits/locale_facets.h:48:0,
from /usr/include/c++/7/bits/basic_ios.h:37,
from /usr/include/c++/7/ios:44,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from Ioi.cpp:3:
/usr/include/c++/7/bits/streambuf_iterator.h:369:5: note: candidate: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
find(istreambuf_iterator<_CharT> __first,
^~~~
/usr/include/c++/7/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed:
Ioi.cpp:95:59: note: '__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
if(find(adj[path[prev]].begin(), adj[path[prev]].end()) == adj[path[prev]].end()) while(true);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from Ioi.cpp:3:
/usr/include/c++/7/bits/stl_algo.h:3899:5: note: candidate: template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)
find(_InputIterator __first, _InputIterator __last,
^~~~
/usr/include/c++/7/bits/stl_algo.h:3899:5: note: template argument deduction/substitution failed:
Ioi.cpp:95:59: note: candidate expects 3 arguments, 2 provided
if(find(adj[path[prev]].begin(), adj[path[prev]].end()) == adj[path[prev]].end()) while(true);
^