0_0_25762208_21245.cpp: In function 'void Solve()':
0_0_25762208_21245.cpp:35:29: error: no match for 'operator=' (operand types are 'std::pair<int, int>' and 'int')
used[r] = D;
^
0_0_25762208_21245.cpp:35:29: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = int; _T2 = int]
operator=(const pair& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: no known conversion for argument 1 from 'int' to 'const std::pair<int, int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = int; _T2 = int]
operator=(pair&& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: no known conversion for argument 1 from 'int' to 'std::pair<int, int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(const pair<_U1, _U2>& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template argument deduction/substitution failed:
0_0_25762208_21245.cpp:35:29: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
used[r] = D;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(pair<_U1, _U2>&& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template argument deduction/substitution failed:
0_0_25762208_21245.cpp:35:29: note: mismatched types 'std::pair<_T1, _T2>' and 'int'
used[r] = D;
^
0_0_25762208_21245.cpp:40:41: error: no match for 'operator==' (operand types are 'int' and 'std::pair<int, int>')
if (arr[r] - arr[r - 1] == used[arr[r - 1]] && arr[l + 1] - arr[l] == used[arr[l + 2]])
^
0_0_25762208_21245.cpp:40:41: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_set:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:116,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1343:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&)
operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1343:5: note: template argument deduction/substitution failed:
0_0_25762208_21245.cpp:40:59: note: mismatched types 'const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>' and 'int'
if (arr[r] - arr[r - 1] == used[arr[r - 1]] && arr[l + 1] - arr[l] == used[arr[l + 2]])
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_set:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:116,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1331:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&)
operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_set.h:1331:5: note: template argument deduction/substitution failed:
0_0_25762208_21245.cpp:40:59: note: mismatched types 'const std::unordered_set<_Value, _Hash, _Pred, _Alloc>' and 'int'
if (arr[r] - arr[r - 1] == used[arr[r - 1]] && arr[l + 1] - arr[l] == used[arr[l + 2]])
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1462:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&)
operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1462:5: note: template argument deduction/substitution failed:
0_0_25762208_21245.cpp:40:59: note: mismatched types 'const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>' and 'int'
if (arr[r] - arr[r - 1] == used[arr[r - 1]] && arr[l + 1] - arr[l] == used[arr[l + 2]])
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1450:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&)
operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:1450:5: note: template argument deduction/substitution failed:
0_0_25762208_21245.cpp:40:59: note: mismatched types 'const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>' and 'int'
if (arr[r] - arr[r - 1] == used[arr[r - 1]] && arr[l + 1] - arr[l] == used[arr[l + 2]])
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:109:0,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/scoped_allocator:443:5: note: template<class _OutA1, class _OutA2, class ... _InA> bool std::operator==(const std::scoped_allocator_adaptor<_OutA1, _InA ...>&, const std::scoped_allocator_adaptor<_InnerHead, _InnerTail ...>&)
operator==(const scoped_allocator_adaptor<_OutA1, _InA...>& __a,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/scoped_allocator:443:5: note: template argument deduction/substitution failed:
0_0_25762208_21245.cpp:40:59: note: mismatched types 'const std::scoped_allocator_adaptor<_OutA1, _InA ...>' and 'int'
if (arr[r] - arr[r - 1] == used[arr[r - 1]] && arr[l + 1] - arr[l] == used[arr[l + 2]])
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:108,
from 0_0_25762208_21245.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:1920:5: note: template<class _Bi_iter, class _Alloc> bool std::operator==(const std::match_results<_BiIter, _Alloc>&, const std::match_results<_BiIter, _Alloc>&)
operat
|