Borderou de evaluare (job #1202478)

Utilizator andreioneaAndrei Onea andreionea Data 28 iunie 2014 00:38:04
Problema Dtcsu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘long long int strip_decimal_zeros(long long int)’: user.cpp:12:12: warning: unused variable ‘ret’ [-Wunused-variable] long long ret = l; ^ user.cpp: In function ‘long long int strip_binary_zeros(long long int)’: user.cpp:21:8: error: expected primary-expression before ‘=’ token l >> = 1; ^ user.cpp: In function ‘int main()’: user.cpp:45:33: error: no match for ‘operator!=’ (operand types are ‘std::unordered_set<long long int>::iterator {aka std::__detail::_Node_iterator<long long int, true, false>}’ and ‘long long int’) if (table.find(strip_long(N)) != Q) ^ user.cpp:45:33: note: candidates are: In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0, from /usr/include/c++/4.8/unordered_set:47, from user.cpp:1: /usr/include/c++/4.8/bits/hashtable_policy.h:1269:5: note: template<class _Key, class _Value, class _ExtractKey, class _H1, class _H2, class _Hash, bool __cache> bool std::__detail::operator!=(const std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _H1, _H2, _Hash, __cache>&, const std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _H1, _H2, _Hash, __cache>&) operator!=(const _Local_iterator_base<_Key, _Value, _ExtractKey, ^ /usr/include/c++/4.8/bits/hashtable_policy.h:1269:5: note: template argument deduction/substitution failed: user.cpp:45:36: note: ‘std::unordered_set<long long int>::iterator {aka std::__detail::_Node_iterator<long long int, true, false>}’ is not derived from ‘const std::__detail::_Local_iterator_base<_Key, _Value, _ExtractKey, _H1, _H2, _Hash, __cache>’ if (table.find(strip_long(N)) != Q) ^ In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0, from /usr/include/c++/4.8/unordered_set:47, from user.cpp:1: /usr/include/c++/4.8/bits/hashtable_policy.h:225:5: note: template<class _Value, bool _Cache_hash_code> bool std::__detail::operator!=(const std::__detail::_Node_iterator_base<_Value, _Cache_hash_code>&, const std::__detail::_Node_iterator_base<_Value, _Cache_hash_code>&) operator!=(const _Node_iterator_base<_Value, _Cache_hash_code>& __x, ^ /usr/include/c++/4.8/bits/hashtable_policy.h:225:5: note: template argument deduction/substitution failed: user.cpp:45:36: note: mismatched types ‘const std::__detail::_Node_iterator_base<_Value, _Cache_hash_code>’ and ‘long long int’ if (table.find(strip_long(N)) != Q) ^

Ceva nu functioneaza?