0_0_40064053_15450.cpp: In lambda function:
0_0_40064053_15450.cpp:40:12: error: reference to 'gcd' is ambiguous
40 | if(gcd[g]>=pos)return;
| ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:58,
from 0_0_40064053_15450.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
0_0_40064053_15450.cpp:22:13: note: 'std::vector<long long int> gcd'
22 | vector<ll> gcd(1e6,-1);
| ^~~
0_0_40064053_15450.cpp:41:12: error: reference to 'gcd' is ambiguous
41 | if(gcd[g]!=-1){
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
0_0_40064053_15450.cpp:22:13: note: 'std::vector<long long int> gcd'
22 | vector<ll> gcd(1e6,-1);
| ^~~
0_0_40064053_15450.cpp:42:22: error: reference to 'gcd' is ambiguous
42 | s.erase({gcd[g],g});
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
0_0_40064053_15450.cpp:22:13: note: 'std::vector<long long int> gcd'
22 | vector<ll> gcd(1e6,-1);
| ^~~
0_0_40064053_15450.cpp:42:20: error: no matching function for call to '__gnu_pbds::tree<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>::erase(<brace-enclosed initializer list>)'
42 | s.erase({gcd[g],g});
| ~~~~~~~^~~~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/container_base_dispatch.hpp:85,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/assoc_container.hpp:48,
from 0_0_40064053_15450.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp:45:1: note: candidate: 'bool __gnu_pbds::detail::rb_tree_set<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::erase(key_const_reference) [with Key = std::pair<long long int, long long int>; Mapped = __gnu_pbds::null_type; Cmp_Fn = std::less<std::pair<long long int, long long int> >; Node_And_It_Traits = __gnu_pbds::detail::tree_traits<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >; _Alloc = std::allocator<char>; key_const_reference = const std::pair<long long int, long long int>&]'
45 | PB_DS_CLASS_C_DEC::
| ^
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp:236:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp:46:27: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to '__gnu_pbds::detail::rb_tree_set<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::detail::tree_traits<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::key_const_reference' {aka 'const std::pair<long long int, long long int>&'}
46 | erase(key_const_reference r_key)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp:57:1: note: candidate: '__gnu_pbds::detail::rb_tree_set<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::iterator __gnu_pbds::detail::rb_tree_set<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::erase(iterator) [with Key = std::pair<long long int, long long int>; Mapped = __gnu_pbds::null_type; Cmp_Fn = std::less<std::pair<long long int, long long int> >; Node_And_It_Traits = __gnu_pbds::detail::tree_traits<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >; _Alloc = std::allocator<char>; iterator = __gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<std::pair<long long int, long long int>, long long unsigned int, std::allocator<char> >*, std::pair<long long int, long long int>, std::pair<long long int, long long int>*, const std::pair<long long int, long long int>*, std::pair<long long int, long long int>&, const std::pair<long long int, long long int>&, true, std::allocator<char> >]'
57 | PB_DS_CLASS_C_DEC::
| ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp:58:16: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to '__gnu_pbds::detail::rb_tree_set<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::detail::tree_traits<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::iterator' {aka '__gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<std::pair<long long int, long long int>, long long unsigned int, std::allocator<char> >*, std::pair<long long int, long long int>, std::pair<long long int, long long int>*, const std::pair<long long int, long long int>*, std::pair<long long int, long long int>&, const std::pair<long long int, long long int>&, true, std::allocator<char> >'}
58 | erase(iterator it)
| ~~~~~~~~~^~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp:73:1: note: candidate: '__gnu_pbds::detail::rb_tree_set<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::reverse_iterator __gnu_pbds::detail::rb_tree_set<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::erase(reverse_iterator) [with Key = std::pair<long long int, long long int>; Mapped = __gnu_pbds::null_type; Cmp_Fn = std::less<std::pair<long long int, long long int> >; Node_And_It_Traits = __gnu_pbds::detail::tree_traits<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >; _Alloc = std::allocator<char>; reverse_iterator = __gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<std::pair<long long int, long long int>, long long unsigned int, std::allocator<char> >*, std::pair<long long int, long long int>, std::pair<long long int, long long int>*, const std::pair<long long int, long long int>*, std::pair<long long int, long long int>&, const std::pair<long long int, long long int>&, false, std::allocator<char> >]'
73 | PB_DS_CLASS_C_DEC::
| ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp:74:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to '__gnu_pbds::detail::rb_tree_set<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::detail::tree_traits<std::pair<long long int, long long int>, __gnu_pbds::null_type, std::less<std::pair<long long int, long long int> >, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::reverse_iterator' {aka '__gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<std::pair<long long int, long long int>, long long unsigned int, std::allocator<char> >*, std::pair<long long int, long long int>, std::pair<long long int, long long int>*, const std::pair<long long int, long long int>*, std::pair<long long int, long long int>&, const std::pair<long long int, long long int>&, false, std::allocator<char> >'}
74 | erase(reverse_iterator it)
| ~~~~~~~~~~~~~~~~~^~
0_0_40064053_15450.cpp:45:9: error: reference to 'gcd' is ambiguous
45 | gcd[g]=pos;
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
0_0_40064053_15450.cpp:22:13: note: 'std::vector<long long int> gcd'
22 | vector<ll> gcd(1e6,-1);
| ^~~
|