Problem towers_noi
User PlayVoltz
Submission Time 2024-03-04 12:48:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

towers_noi.cpp: In function ‘int32_t main()’:
towers_noi.cpp:61:9: error: reference to ‘count’ is ambiguous
61 | if (++count[vect[i].fi]==1)t.pb(vect[i].fi);
| ^~~~~
In file included from /usr/include/c++/9/algorithm:71,
from towers_noi.cpp:8:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:101:1: note: candidates are: ‘template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)’
101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
| ^~~~~
In file included from /usr/include/c++/9/algorithm:62,
from towers_noi.cpp:8:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: ‘template<class _IIter, class _Tp&g