zagrade.cpp: In function 'void Chain(const string&)':
zagrade.cpp:17:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < pref.size(); ++i)
~~^~~~~~~~~~~~~
zagrade.cpp:38:22: error: no match for 'operator<=' (operand types are 'int' and 'std::vector<int>')
for (int j = i; j <= r; ++j)
~~^~~~
In file included from /usr/include/c++/7/utility:70:0,
from /usr/include/c++/7/algorithm:60,
from zagrade.cpp:1:
/usr/include/c++/7/bits/stl_pair.h:468:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator<=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:468:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from zagrade.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:323:5: note: candidate: template<class _Iterator> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator<=(const reverse_iterator<_Iterator>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:323:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from zagrade.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:361:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator<=(const reverse_iterator<_IteratorL>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:361:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from zagrade.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:1154:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
operator<=(const move_iterator<_IteratorL>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1154:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from zagrade.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:1160:5: note: candidate: template<class _Iterator> bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
operator<=(const move_iterator<_Iterator>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1160:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from zagrade.cpp:2:
/usr/include/c++/7/bits/basic_string.h:6158:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6158:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from zagrade.cpp:2:
/usr/include/c++/7/bits/basic_string.h:6171:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6171:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from zagrade.cpp:2:
/usr/include/c++/7/bits/basic_string.h:6183:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<=(const _CharT* __lhs,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6183:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const _CharT*' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/vector:64:0,
from zagrade.cpp:4:
/usr/include/c++/7/bits/stl_vector.h:1632:5: note: candidate: template<class _Tp, class _Alloc> bool std::operator<=(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:1632:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from zagrade.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:923:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator<=(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
operator<=(const __normal_iterator<_Iterator, _Container>& __lhs,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:923:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>' and 'int'
for (int j = i; j <= r; ++j)
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from zagrade.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:916:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<=(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:916:5: note: template argument deduction/substitution failed:
zagrade.cpp:38:25: note: mismatched types 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>' and 'int'
for (int j = i; j <= r; ++j)
^
zagrade.cpp: In function 'void Dfs(int, int)':
zagrade.cpp:51:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < nei[v].size(); ++i)
~~^~~~~~~~~~~~~~~