Borderou de evaluare (job #2907345)
Utilizator | Data | 29 mai 2022 19:53:52 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Pompare::pompare(int, int)':
main.cpp:95:67: error: no matching function for call to 'find(std::vector<std::pair<int, bool> >::iterator, std::vector<std::pair<int, bool> >::iterator, std::pair<int, bool>)'
95 | if (find(graf[u].begin(), graf[u].end(), std::make_pair(v, true)) != graf[u].end()) {
| ^
In file included from /usr/include/c++/10/bits/locale_facets.h:48,
from /usr/include/c++/10/bits/basic_ios.h:37,
from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:3:
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)'
422 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed:
main.cpp:95:67: note: '__gnu_cxx::__normal_iterator<std::pair<int, bool>*, std::vector<std::pair<int, bool> > >' is not derived from 'std::istreambuf_iterator<_CharT>'
95 | if (find(graf[u].begin(), graf[u].end(), std::make_pair(v, true)) != graf[u].end()) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !