answer.code: In function ‘int main()’:
answer.code:67:24: error: could not convert ‘__gnu_pbds::detail::gp_ht_map<Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Probe_Fn, Probe_Fn, Resize_Policy>::find(key_const_reference) [with Key = long unsigned int; Mapped = int; Hash_Fn = std::tr1::hash<long unsigned int>; Eq_Fn = std::equal_to<long unsigned int>; _Alloc = std::allocator<char>; bool Store_Hash = false; Comb_Probe_Fn = __gnu_pbds::direct_mask_range_hashing<>; Probe_Fn = __gnu_pbds::linear_probe_fn<long unsigned int>; Resize_Policy = __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, false, long unsigned int>; point_iterator = __gnu_pbds::detail::gp_ht_map<long unsigned int, int, std::tr1::hash<long unsigned int>, std::equal_to<long unsigned int>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<long unsigned int>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, false, long unsigned int> >::point_iterator_; key_const_reference = const long unsigned int&](need)’ from ‘__gnu_pbds::detail::gp_ht_map<long unsigned int, int, std::tr1::hash<long unsigned int>, std::equal_to<long unsigned int>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<long unsigned int>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, false, long unsigned int> >::point_iterator’ {aka ‘__gnu_pbds::detail::gp_ht_map<long unsigned int, int, std::tr1::hash<long unsigned int>, std::equal_to<long unsigned int>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<long unsigned int>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, false, long unsigned int> >::point_iterator_’} to ‘bool’
67 | if (mp.find(need)) ans += mp[need];
| ~~~~~~~^~~~~~
| |
| __gnu_pbds::detail::gp_ht_map<long unsigned int, int, std::tr1::hash<long unsigned int>, std::equal_to<long unsigned int>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<long unsigned int>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, false, long unsigned int> >::point_iterator {aka __gnu_pbds::detail::gp_ht_map<long unsigned int, int, std::tr1::hash<long unsigned int>, std::equal_to<long unsigned int>, std::allocator<char>, false, __gnu_pbds::direct_mask_range_hashing<>, __gnu_pbds::linear_probe_fn<long unsigned int>, __gnu_pbds::hash_standard_resize_policy<__gnu_pbds::hash_exponential_size_policy<>, __gnu_pbds::hash_load_check_resize_trigger<>, false, long unsigned int> >::point_iterator_}