#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 | #51384051 | Utilizator | |
Fișier | componentebiconexe.cpp | Dimensiune | 2.48 KB |
Data încărcării | 11 Iunie 2024, 20:46 | Scor / rezultat | Eroare de compilare |
componentebiconexe.cpp:11:20: error: 'int time' redeclared as different kind of symbol int p, n, m, a, b, time, nr; ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from componentebiconexe.cpp:1: /usr/include/time.h:192:15: error: previous declaration of 'time_t time(time_t*)' extern time_t time (time_t *__timer) __THROW; ^ componentebiconexe.cpp: In function 'void dfs(int, int)': componentebiconexe.cpp:21:26: error: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}' [-fpermissive] disc[x] = low[x] = ++time; ^ componentebiconexe.cpp:21:26: error: lvalue required as increment operand componentebiconexe.cpp: In function 'int main()': componentebiconexe.cpp:71:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < biconnected_comp.size(); ++i){ ^ componentebiconexe.cpp:73:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < biconnected_comp[i].size(); ++j) ^ componentebiconexe.cpp:80:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < articulation_points.size(); ++i) ^ componentebiconexe.cpp:85:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < critical_edges.size(); ++i) ^
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ă.