answer.code: In function ‘void solve()’:
answer.code:71:21: error: no match for ‘operator==’ (operand types are ‘PII’ {aka ‘std::pair<int, int>’} and ‘int’)
71 | if (pa[idx - 1] == -1) {
| ~~~~~~~~~~~ ^~ ~~
| | |
| | int
| PII {aka std::pair<int, int>}
In file included from /usr/include/c++/13/iosfwd:42,
from /usr/include/c++/13/ios:40,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/c++/13/bits/postypes.h:192:5: note: candidate: ‘template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)’
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/13/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
answer.code:71:25: note: ‘PII’ {aka ‘std::pair<int, int>’} is not derived from ‘const std::fpos<_StateT>’
71 | if (pa[idx - 1] == -1) {
| ^
In file included from /usr/include/c++/13/string:43,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44:
/usr/include/c++/13/bits/allocator.h:237:5: note: candidate: ‘template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)’
237 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/13/bits/allocator.h:237:5: note: template argument deduction/substitution failed:
answer.code:71:25: note: ‘PII’ {aka ‘std::pair<int, int>’} is not derived from ‘const std::allocator<_CharT>’
71 | if (pa[idx - 1] == -1) {
| ^
In file included from /usr/include/c++/13/string:48:
/usr/include/c++/13/bits/stl_iterator.h:448:5: note: candidate: ‘template<class _Iterator> bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)’
448 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
answer.code:71:25: note: ‘PII’ {aka ‘std::pair<int, int>’} is not derived from ‘const std::reverse_iterator<_Iterator>’
71 | if (pa[idx - 1] == -1) {
| ^
/usr/include/c++/13/bits/stl_iterator.h:493:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)’
493 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
answer.code:71:25: note: ‘PII’ {aka ‘std::pair<int, int>’} is not derived from ‘const std::reverse_iterator<_Iterator>’
71 | if (pa[idx - 1] == -1) {
| ^
/usr/include/c++/13/bits/stl_iterator.h:1678:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’
1678 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1678:5: note: template argument deduction/substitution failed:
answer.code:71:25: note: ‘PII’ {aka ‘std::pair<int, int>’} is not derived from ‘const std::move_iterator<_IteratorL>’
71 | if (pa[idx - 1] == -1) {
| ^
/usr/include/c++/13/bits/stl_iterator.h:1748:5: note: candidate: ‘template<class _Iterator> bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)’
1748 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1748:5: note: template argument deduction/substitution failed:
answer.code:71:25: note: ‘PII’ {aka ‘std::pair<int, int>’} is not derived from ‘const std::move_iterator<_IteratorL>’
71 | if (pa[idx - 1] == -1) {
| ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:64,
from /usr/include/c++/13/string:51:
/usr/include/c++/13/bits/stl_pair.h:812:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator==(const pair<_T1, _T2>&, const pair<_T1, _T2>&)’
812 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:812:5: note: template argument deduction/substitution failed:
answer.code:71:25: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
71 | if (pa[idx - 1] == -1) {
| ^
In file included from /usr/include/c++/13/string:54:
/usr/include/c++/13/bits/basic_string.h:3698:5: note: candida...