Borderou de evaluare (job #3241378)

Utilizator luc3lexaAlexandrescu Luca luc3lexa Data 29 august 2024 17:48:49
Problema Autobuze Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:54:56: error: expected ')' before '{' token 54 | if(mp.find(values[i]/j){ | ~ ^ | ) main.cpp:54:43: error: could not convert 'mp.std::unordered_map<int, int>::find((values.std::vector<int>::operator[](((std::vector<int>::size_type)i)) / j))' from 'std::unordered_map<int, int>::iterator' {aka 'std::__detail::_Insert_base<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::iterator'} to 'bool' 54 | if(mp.find(values[i]/j){ | ~~~~~~~^~~~~~~~~~~~~ | | | std::unordered_map<int, int>::iterator {aka std::__detail::_Insert_base<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::iterator} main.cpp:61:25: error: expected primary-expression before '}' token 61 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?