triples.cpp: In member function 'long long int comb::operator*(const comb&) const':
triples.cpp:124:21: error: 'd' was not declared in this scope; did you mean 'rd'?
124 | if(a.sz() > d.a.sz()) return b * *this;
| ^
| rd
triples.cpp:126:40: error: no matching function for call to 'std::map<int, int>::count(const std::map<int, int>&) const'
126 | for(auto [i,v] :a) if(b.a.count(a)) o+=(ll)v*b.a.at(i);
| ~~~~~~~~~^~~
In file included from /usr/include/c++/11/map:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81,
from triples.cpp:3:
/usr/include/c++/11/bits/stl_map.h:1221:9: note: candidate: 'template<class _Kt> decltype (((const std::map<_Key, _Tp, _Compare, _Alloc>*)this)->std::map<_Key, _Tp, _Compare, _Alloc>::_M_t._M_count_tr(__x)) std::map<_Key, _Tp, _Compare, _Alloc>::count(const _Kt&) const [with _Kt = _Kt; _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
1221 | count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x))
| ^~~~~
/usr/include/c++/11/bits/stl_map.h:1221:9: note: template argument deduction/substitution failed:
/usr/include/c++/11/bits/stl_map.h: In substitution of 'template<class _Kt> decltype (((const std::map<int, int>*)this)->std::map<int, int>::_M_t.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::_M_count_tr<_Kt, _Req>(__x)) std::map<int, int>::count<_Kt>(const _Kt&) const [with _Kt = std::map<int, int>]':
triples.cpp:126:40: required from here
/usr/include/c++/11/bits/stl_map.h:1221:65: error: no matching function for call to 'std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::_M_count_tr(const std::map<int, int>&) const'
1221 | count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x))
| ~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/11/map:60,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81,
from triples.cpp:3:
/usr/include/c++/11/bits/stl_tree.h:1314:9: note: candidate: 'template<class _Kt, class _Req> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_count_tr(const _Kt&) const [with _Kt = _Kt; _Req = _Req; _Key = int; _Val = std::pair<const int, int>; _KeyOfValue = std::_Select1st<std::pair<const int, int> >; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
1314 | _M_count_tr(const _Kt& __k) const
| ^~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:1314:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/11/string:48,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from triples.cpp:3:
/usr/include/c++/11/bits/stl_function.h: In substitution of 'template<class _Func, class _SfinaeType> using __has_is_transparent_t = typename std::__has_is_transparent<_Func, _SfinaeType>::type [with _Func = std::less<int>; _SfinaeType = std::map<int, int>]':
/usr/include/c++/11/bits/stl_tree.h:1312:9: required by substitution of 'template<class _Kt> decltype (((const std::map<int, int>*)this)->std::map<int, int>::_M_t.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::_M_count_tr<_Kt, _Req>(__x)) std::map<int, int>::count<_Kt>(const _Kt&) const [with _Kt = std::map<int, int>]'
triples.cpp:126:40: required from here
/usr/include/c++/11/bits/stl_function.h:1413:11: error: no type named 'type' in 'struct std::__has_is_transparent<std::less<int>, std::map<int, int>, void>'
1413 | using __has_is_transparent_t
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/map:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81,
from triples.cpp:3:
/usr/include/c++/11/bits/stl_map.h:1215:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::count(const key_type&) const [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::size_type = long unsigned int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]'
1215 | count(const key_type& __x) const
| ^~~~~
/usr/include/c++/11/bits/stl_map.h:1215:29: note: no known conversion for argument 1 from 'const std::map<int, int>' to 'const key_type&' {aka 'const int&'}
1215 | count(const key_type& __x) const
| ~~~~~~~~~~~~~~~~^~~