Borderou de evaluare (job #2624748)
Utilizator | Data | 5 iunie 2020 11:36:44 | |
---|---|---|---|
Problema | Muzica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:28:31: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Value, class _Hash, class _Pred, class _Alloc> class std::unordered_set'
unordered_set<iterator>::it;
^
main.cpp:28:31: note: expected a type, got 'iterator'
main.cpp:28:31: error: template argument 2 is invalid
main.cpp:28:31: error: template argument 3 is invalid
main.cpp:28:31: error: template argument 4 is invalid
main.cpp:29:21: error: cannot convert 'std::unordered_set<long long int>::iterator {aka std::__detail::_Node_iterator<long long int, true, false>}' to 'int' in assignment
it=fv.find(z);
^
main.cpp:30:14: error: no match for 'operator!=' (operand types are 'int' and 'std::unordered_set<long long int>::iterator {aka std::__detail::_Node_iterator<long long int, true, false>}')
if(it!=fv.end())
~~^~~~~~~~~~
In file included from /usr/include/c++/6/iosfwd:40:0,
from /usr/include/c++/6/ios:38,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/postypes.h:221:5: note: candidate: template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
^~~~~~~~
/usr/include/c++/6/bits/postypes.h:221:5: note: template argument deduction/substitution failed:
main.cpp:30:23: note: mismatched types 'const std::fpos<_StateT>' and 'int'
if(it!=fv.end())
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:448:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^~~~~~~~
/usr/include/c++/6/bits/stl_pair.h:448:5: note: template argument deduction/substitution failed:
main.cpp:30:23: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
if(it!=fv.end())
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/stl_iterator.h:304:5: note: candidate: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator!=(const reverse_iterator<_Iterator>& __x,
^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:304:5: note: template argument deduction/substitution failed:
main.cpp:30:23: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !