Borderou de evaluare (job #1985724)

Utilizator insert_name_hereUAIC Ionita Tucar Vintur insert_name_here Data 28 mai 2017 10:50:13
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void solve(int)’: user.cpp:26:10: error: no match for ‘operator==’ (operand types are ‘int’ and ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’) if(it2 == s.end()) ^ user.cpp:26:10: note: candidates are: In file included from /usr/include/c++/4.8/unordered_set:48:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:116, from user.cpp:1: /usr/include/c++/4.8/bits/unordered_set.h:1283:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&) operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, ^ /usr/include/c++/4.8/bits/unordered_set.h:1283:5: note: template argument deduction/substitution failed: user.cpp:26:19: note: mismatched types ‘const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>’ and ‘int’ if(it2 == s.end()) ^ In file included from /usr/include/c++/4.8/unordered_set:48:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:116, from user.cpp:1: /usr/include/c++/4.8/bits/unordered_set.h:1271:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&) operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, ^ /usr/include/c++/4.8/bits/unordered_set.h:1271:5: note: template argument deduction/substitution failed: user.cpp:26:19: note: mismatched types ‘const std::unordered_set<_Value, _Hash, _Pred, _Alloc>’ and ‘int’ if(it2 == s.end()) ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:115, from user.cpp:1: /usr/include/c++/4.8/bits/unordered_map.h:1400:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&) operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, ^ /usr/include/c++/4.8/bits/unordered_map.h:1400:5: note: template argument deduction/substitution failed: user.cpp:26:19: note: mismatched types ‘const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>’ and ‘int’ if(it2 == s.end()) ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:115, from user.cpp:1: /usr/include/c++/4.8/bits/unordered_map.h:1388:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, ^ /usr/include/c++/4.8/bits/unordered_map.h:1388:5: note: template argument deduction/substitution failed: user.cpp:26:19: note: mismatched types ‘const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>’ and ‘int’ if(it2 == s.end()) ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:109:0, from user.cpp:1: /usr/include/c++/4.8/scoped_allocator:443:5: note: template<class _OutA1, class _OutA2, class ... _InA> bool std::operator==(const std::scoped_allocator_adaptor<_OutA1, _InA ...>&, const std::scoped_allocator_adaptor<_InnerHead, _InnerTail ...>&) operator==(const scoped_allocator_adaptor<_OutA1, _InA...>& __a, ^

Ceva nu functioneaza?