Problem whalemewing
User tbytanboyang
Submission Time 2026-05-16 12:36:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

whalemewing.cpp: In function ‘int main()’:
whalemewing.cpp:13:32: error: no matching function for call to ‘std::map<std::__cxx11::basic_string<char>, int>::find(std::map<std::__cxx11::basic_string<char>, int>::mapped_type&)’
13 | if (maxmap.find(s[name]) == maxmap.end()){
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from whalemewing.cpp:1:
/usr/include/c++/9/bits/stl_map.h:1168:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const key_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>::itera