Borderou de evaluare (job #1618450)
Utilizator | Data | 27 februarie 2016 20:18:21 | |
---|---|---|---|
Problema | And | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int longest_odd_seq(const std::vector<int>&)’:
user.cpp:11:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v.size(); ++i){
^
user.cpp: In function ‘int main()’:
user.cpp:36:63: error: call of overloaded ‘all_of(std::vector<int>::iterator, std::vector<int>::iterator, std::binder1st<std::equal_to<int> >)’ is ambiguous
for( ;!all_of(v.begin(), v.end(), bind1st(equal_to<int>(), 0));
^
user.cpp:36:63: note: candidates are:
user.cpp:20:6: note: bool all_of(It, It, F) [with It = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; F = std::binder1st<std::equal_to<int> >]
bool all_of(It st, It dr, F f){
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:6:
/usr/include/c++/4.8/bits/stl_algo.h:753:5: note: bool std::all_of(_IIter, _IIter, _Predicate) [with _IIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Predicate = std::binder1st<std::equal_to<int> >]
all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !