Borderou de evaluare (job #3346789)
| Utilizator | Data | 15 martie 2026 11:52:06 | |
|---|---|---|---|
| Problema | Bicicleta | Status | done |
| Runda | Universitatea Tehnică din Cluj-Napoca - 2026 - Concurs | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:45:30: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
45 | if (std::find(times.begin(), times.end(), i) != times.end()) {
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/locale_facets.h:48,
from /usr/include/c++/12.2.1/bits/basic_ios.h:37,
from /usr/include/c++/12.2.1/ios:44,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/streambuf_iterator.h:434:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
434 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/12.2.1/bits/streambuf_iterator.h:434:5: note: template argument deduction/substitution failed:
main.cpp:45:30: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
45 | if (std::find(times.begin(), times.end(), i) != times.end()) {
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
