lang.cpp: In function 'void excerpt(int*)':
lang.cpp:48:28: error: reference to 'count' is ambiguous
48 | FOR(p,mp[res]) p.se *= count[res];
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from lang.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:4107:5: note: candidates are: 'template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)'
4107 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
lang.cpp:34:8: note: 'double count [56]'
34 | double count[56];
| ^~~~~
lang.cpp:50:5: error: reference to 'count' is ambiguous
50 | count[res] += 1.0;
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from lang.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:4107:5: note: candidates are: 'template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)'
4107 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
lang.cpp:34:8: note: 'double count [56]'
34 | double count[56];
| ^~~~~
lang.cpp:51:28: error: reference to 'count' is ambiguous
51 | FOR(p,mp[res]) p.se /= count[res];
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from lang.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:4107:5: note: candidates are: 'template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)'
4107 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
lang.cpp:34:8: note: 'double count [56]'
34 | double count[56];
| ^~~~~