Problem lineup
User R9q5P8
Submission Time 2026-11-02 13:48:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup.cpp: In function ‘int main()’:
lineup.cpp:22:31: error: no matching function for call to ‘std::unordered_map<long long int, long long int>::insert(long long int&)’
22 | current.insert(cows[0].second);
| ^
In file included from /usr/include/c++/9/unordered_map:47,
from /usr/include/c++/9/functional:61,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from lineup.cpp:1:
/usr/include/c++/9/bits/unordered_map.h:438:7: note: candidate: ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert_return_type std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::node_type&&) [with _Key = long long int; _Tp = long long int; _Hash = std::hash<long lo