Problem vainish
User hwy
Submission Time 2023-07-01 00:09:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

vainish.cpp: In function ‘int main()’:
vainish.cpp:32:23: error: no matching function for call to ‘std::map<long long int, long long int>::insert(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, int)’
32 | freq.insert(v[i], 1);
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from vainish.cpp:1:
/usr/include/c++/9/bits/stl_map.h:627:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::insert_return_type std::map<_Key, _Tp, _Compare, _Alloc>::insert(std::map<_Key, _Tp, _Compare, _Alloc>::node_type&&) [with _Key = long long int; _Tp = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, long long int> >; std::map<_Key, _Tp, _Compare, _Alloc>::insert_return_type = std::_Node_insert_re