Borderou de evaluare (job #1740058)

Utilizator xSliveSergiu xSlive Data 10 august 2016 19:19:37
Problema Facebook Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:16:29: error: could not convert ‘prieteni.std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::find<long unsigned int, long unsigned int, std::hash<long unsigned int>, std::equal_to<long unsigned int>, std::allocator<std::pair<const long unsigned int, long unsigned int> > >((* &((std::unordered_map<long unsigned int, long unsigned int>::key_type)el)))’ from ‘std::unordered_map<long unsigned int, long unsigned int>::iterator {aka std::__detail::_Node_iterator<std::pair<const long unsigned int, long unsigned int>, false, false>}’ to ‘bool’ if(prieteni.find(el)) prieteni[el]++; ^ user.cpp:17:14: error: ‘prienteni’ was not declared in this scope else prienteni[el]=1; ^ user.cpp:19:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(prieteni[el] == k) gata=1; ^

Ceva nu functioneaza?