Problem | eeniemeenie |
---|---|
User | blob |
Submission Time | 2023-11-24 11:35:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eeniemeenie.cpp: In function ‘int main()’:
eeniemeenie.cpp:9:18: error: no matching function for call to ‘std::map<std::__cxx11::basic_string<char>, int>::insert(std::string&, int&)’
9 | m.insert(name,i);
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from eeniemeenie.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 = std::__cxx11::basic_string<char>; _Tp = int; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::insert_return_type = std::_Node_insert_return<std