Problem ssoca
User EliteCollapseZ
Submission Time 2025-02-19 16:00:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ssoca.cpp: In function ‘int main()’:
ssoca.cpp:11:41: error: no matching function for call to ‘std::unordered_map<long long int, long long int>::unordered_map(long long int, int)’
11 | unordered_map<int, int> prefix(n + 1, 0);
| ^
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 ssoca.cpp:1:
/usr/include/c++/9/bits/unordered_map.h:264:7: note: candidate: ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::initializer_list<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__de