#4204
| Problema | esteArbore | Operații I/O |
estearbore.in/estearbore.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63536328 | Utilizator | |
| Fișier | estearbore.cpp | Dimensiune | 981 B |
| Data încărcării | 08 Martie 2026, 14:17 | Scor/rezultat | Eroare de compilare |
estearbore.cpp: In function 'void dfs(int, int)': estearbore.cpp:19:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < graph[act].size(); i++) { ^ estearbore.cpp: In function 'int main()': estearbore.cpp:40:59: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)' auto it = find(graph[x].begin(), graph[x].end(), y); ^ estearbore.cpp:40:59: note: candidate is: In file included from /usr/include/c++/4.8/bits/locale_facets.h:48:0, from /usr/include/c++/4.8/bits/basic_ios.h:37, from /usr/include/c++/4.8/ios:44, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from estearbore.cpp:1: /usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: 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&) find(istreambuf_iterator<_CharT> __first, ^ /usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed: estearbore.cpp:40:59: note: '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>' auto it = find(graph[x].begin(), graph[x].end(), y); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema esteArbore face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.