Borderou de evaluare (job #3188286)
Utilizator | Data | 2 ianuarie 2024 16:14:44 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool este_muchie_stearsa(int, int)':
main.cpp:17:17: error: no matching function for call to 'find(std::vector<std::pair<int, int> >::iterator, std::vector<std::pair<int, int> >::iterator, std::pair<int, int>)'
17 | return (find(muchii_sterse.begin(), muchii_sterse.end(), make_pair(min(u, v), max(u, v))) != muchii_sterse.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:17:17: note: '__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >' is not derived from 'std::istreambuf_iterator<_CharT>'
17 | return (find(muchii_sterse.begin(), muchii_sterse.end(), make_pair(min(u, v), max(u, v))) != muchii_sterse.end());
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'std::vector<int> gaseste_ciclu_eulerian(int, int, std::vector<std::vector<int> >&)':
main.cpp:22:5: error: 'stack' was not declared in this scope
22 | stack<int> stiva;
| ^~~~~
main.cpp:4:1: note: 'std::stack' is defined in header '<stack>'; did you forget to '#include <stack>'?
3 | #include <vector>
+++ |+#include <stack>
4 |
main.cpp:22:11: error: expected primary-expression before 'int'
22 | stack<int> stiva;
| ^~~
main.cpp:24:5: error: 'stiva' was not declared in this scope
24 | stiva.push(nod_start);
| ^~~~~
main.cpp: In function 'int main()':
main.cpp:65:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for (int i = 0; i < ciclu_eulerian.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !