Problem zanesletters
User blob
Submission Time 2023-12-20 12:46:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

zanesletters.cpp: In function ‘int main()’:
zanesletters.cpp:19:19: error: could not convert ‘(map.std::unordered_map<std::__cxx11::basic_string<char>, int>::find(s) = map.std::unordered_map<std::__cxx11::basic_string<char>, int>::end())’ from ‘std::unordered_map<std::__cxx11::basic_string<char>, int>::iterator’ {aka ‘std::__detail::_Node_iterator<std::pair<const std::__cxx11::basic_string<char>, int>, false, true>’} to ‘bool’
19 | if (map.find(s) = map.end()){
| ~~~~~~~~~~~~^~~~~~~~~~~
| |
| std::unordered_map<std::__cxx11::basic_string<char>, int>::iterator {aka std::__detail::_Node_iterator<std::pair<const std::__cxx11::basic_string<char>, int>, false, true>}