Problem ballot
User SuspiciousAmogus
Submission Time 2024-06-13 12:16:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/set:60,
from ballot.cpp:3:
/usr/include/c++/9/bits/stl_tree.h: In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = student; _Val = student; _KeyOfValue = std::_Identity<student>; _Compare = cmp; _Alloc = std::allocator<student>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<student>*]’:
/usr/include/c++/9/bits/stl_tree.h:2131:44: required from ‘std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_equal_pos(const key_type&) [with _Key = student; _Val = student; _KeyOfValue = std::_Identity<student>; _Compare = cmp; _Alloc = std::allocator<student>; std::_Rb_tree<_Key, _Val, _KeyOfVal