Borderou de evaluare (job #2859705)

Utilizator mateitudordmDumitru Matei mateitudordm Data 1 martie 2022 19:42:35
Problema Adlic 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:36:71: error: no matching function for call to 'lower_bound(std::vector<int>::iterator, std::vector<int>::iterator, int&, std::greater<int>)' 36 | it = lower_bound(s.begin(), s.end(), v[i], greater<int> ()); | ^ In file included from /usr/include/c++/10/bits/char_traits.h:39, from /usr/include/c++/10/ios:40, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/bits/stl_algobase.h:1348:5: note: candidate: 'template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)' 1348 | lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~ /usr/include/c++/10/bits/stl_algobase.h:1348:5: note: template argument deduction/substitution failed: main.cpp:36:71: note: candidate expects 3 arguments, 4 provided 36 | it = lower_bound(s.begin(), s.end(), v[i], greater<int> ()); | ^ main.cpp:20:29: warning: unused variable 'j' [-Wunused-variable] 20 | int c, n, i, clase = 1, j, a; | ^ main.cpp:20:32: warning: unused variable 'a' [-Wunused-variable] 20 | int c, n, i, clase = 1, j, a; | ^ Non zero exit status: 1

Ceva nu functioneaza?