#1572
Dându-se un graf conex, să se determine componentele biconexe, punctele de articulaţie şi muchiile critice ale acestuia.
| Problema | ComponenteBiconexe | Operații I/O |
componentebiconexe.in/componentebiconexe.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #58008410 | Utilizator | |
| Fișier | componentebiconexe.cpp | Dimensiune | 2.84 KB |
| Data încărcării | 07 Mai 2025, 23:22 | Scor/rezultat | Eroare de compilare |
componentebiconexe.cpp: In function 'void dfs(int, int)': componentebiconexe.cpp:51:26: error: expected unqualified-id before '[' token auto [a, b] = st.top(); ^ componentebiconexe.cpp:53:32: error: 'a' was not declared in this scope muchii.pb({a, b}); ^ componentebiconexe.cpp:53:35: error: 'b' was not declared in this scope muchii.pb({a, b}); ^ componentebiconexe.cpp:53:37: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)' muchii.pb({a, b}); ^ componentebiconexe.cpp:53:37: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from componentebiconexe.cpp:4: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, int>&}' /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}' componentebiconexe.cpp: In function 'int main()': componentebiconexe.cpp:113:26: error: expected unqualified-id before '[' token for (const auto &[a, b] : muchii) ^ componentebiconexe.cpp:113:26: error: expected ';' before '[' token componentebiconexe.cpp:113:27: error: 'a' was not declared in this scope for (const auto &[a, b] : muchii) ^ componentebiconexe.cpp:113:30: error: 'b' was not declared in this scope for (const auto &[a, b] : muchii) ^ componentebiconexe.cpp: In lambda function: componentebiconexe.cpp:113:33: error: expected '{' before ':' token for (const auto &[a, b] : muchii) ^ componentebiconexe.cpp: In function 'int main()': componentebiconexe.cpp:113:33: error: expected ';' before ':' token componentebiconexe.cpp:113:33: error: expected primary-expression before ':' token componentebiconexe.cpp:113:33: error: expected ')' before ':' token componentebiconexe.cpp:113:33: error: expected primary-expression before ':' token componentebiconexe.cpp:113:33: error: expected ';' before ':' token
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteBiconexe 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ă.