Borderou de evaluare (job #2346636)
Utilizator | Data | 17 februarie 2019 21:35:16 | |
---|---|---|---|
Problema | Bete2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/6/algorithm:62:0,
from main.cpp:2:
/usr/include/c++/6/bits/stl_algo.h: In instantiation of 'bool std::binary_search(_FIter, _FIter, const _Tp&) [with _FIter = int; _Tp = int]':
main.cpp:30:42: required from here
/usr/include/c++/6/bits/stl_algo.h:2257:41: error: invalid type argument of unary '*' (have 'int')
return __i != __last && !(__val < *__i);
^~~~
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h: In instantiation of '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = int; _Tp = int; _Compare = __gnu_cxx::__ops::_Iter_less_val]':
/usr/include/c++/6/bits/stl_algo.h:2255:22: required from 'bool std::binary_search(_FIter, _FIter, const _Tp&) [with _FIter = int; _Tp = int]'
main.cpp:30:42: required from here
/usr/include/c++/6/bits/stl_algobase.h:950:2: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
_DistanceType;
^~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !