Problem ballot
User blob
Submission Time 2023-11-14 09:50:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballot.cpp: In function ‘int main()’:
ballot.cpp:7:25: error: class template argument deduction failed:
7 | set<int> s; ::iterator it;
| ^~
ballot.cpp:7:25: error: no matching function for call to ‘iterator()’
In file included from /usr/include/c++/9/bits/stl_algobase.h:65,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from ballot.cpp:1:
/usr/include/c++/9/bits/stl_iterator_base_types.h:118:12: note: candidate: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> iterator()-> std::iterator<_Category, _Tp, _Distance, _Pointer, _Reference>’
118 | struct iterator
| ^~~~~~~~
/usr/include/c++/9/bits/stl_iterator_base_types.h:118:12: note: template argument deduction/substitution f