#1572
ComponenteBiconexe
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 | #35523056 | Utilizator | |
Fișier | componentebiconexe.cpp | Dimensiune | 2.15 KB |
Data încărcării | 12 Martie 2022, 14:52 | Scor / rezultat | Eroare de compilare |
componentebiconexe.cpp: In function 'void dfs(int, int)': componentebiconexe.cpp:21:16: error: 'class std::stack<std::pair<int, int> >' has no member named 'push_back' st.push_back({it,nod}); ^ componentebiconexe.cpp:32:34: error: expected primary-expression before '{' token if(st.top()=={it,nod}) ^ componentebiconexe.cpp:32:34: error: expected ')' before '{' token componentebiconexe.cpp: In function 'int main()': componentebiconexe.cpp:54:15: warning: unused variable 'j' [-Wunused-variable] int n,m,i,j,a,b,c; ^ componentebiconexe.cpp:52:47: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("componentebiconexe.in","r",stdin); ^ componentebiconexe.cpp:53:49: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("componentebiconexe.out","w",stdout); ^
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ă.