#438
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
| Problema | ComponenteConexe | Operații I/O |
componenteconexe.in/componenteconexe.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63997907 | Utilizator | |
| Fișier | componenteconexe.cpp | Dimensiune | 988 B |
| Data încărcării | 03 Aprilie 2026, 08:47 | Scor/rezultat | Eroare de compilare |
componenteconexe.cpp: In function 'void bfs(int, int)': componenteconexe.cpp:8:24: error: 'void bfs(int, int)' redeclared as different kind of symbol void bfs(int x, int nrc) ^ componenteconexe.cpp:7:61: error: previous declaration of 'int bfs' int a[101][101], viz[101],n,x,y,c[101],i,q,ultim,prim,nrc,j,bfs; ^ componenteconexe.cpp:11:5: error: expected ',' or ';' before 'c' c[1]=1; ^ componenteconexe.cpp:28:1: error: a function-definition is not allowed here before '{' token { ^ componenteconexe.cpp:51:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe 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ă.