Borderou de evaluare (job #2618170)
Utilizator | Zota Stefan-Daniel STEFAN-ZOTA | Data | 23 mai 2020 19:59:57 |
---|---|---|---|
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:20:53: error: no match for 'operator=' (operand types are 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' and '__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >')
index = find(vasile.begin(), vasile.end(), a);
^
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/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/stl_iterator.h:757:11: note: candidate: constexpr __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&)
class __normal_iterator
^~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:757:11: note: no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >' to 'const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&'
/usr/include/c++/6/bits/stl_iterator.h:757:11: note: candidate: constexpr __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&)
/usr/include/c++/6/bits/stl_iterator.h:757:11: note: no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >' to '__gnu_cxx::__normal_iterator<int*, std::vector<int> >&&'
main.cpp:21:26: error: no match for 'operator!=' (operand types are 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' and 'std::vector<long long int>::iterator {aka __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >}')
if(index != vasile.end())
~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:951:5: note: candidate: template<class _BiIter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)
operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
^~~~~~~~
/usr/include/c++/6/bits/regex.h:951:5: note: template argument deduction/substitution failed:
main.cpp:21:40: note: 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
if(index != vasile.end())
^
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:1029:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)
operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/regex.h:1029:5: note: template argument deduction/substitution failed:
main.cpp:21:40: note: 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
if(index != vasile.end())
^
In file included from /usr/include/c++/6/regex:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/6/bits/regex.h:1109:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)
operator!=(const sub_match<_Bi_iter>& __lhs,
^~~~~~~~
/usr/include/c++/6/bits/regex.h:1109:5: note: template argument deduction/substitution failed:
main.cpp:21:40: note: 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !