#438
ComponenteConexe
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 | #30075208 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 926 B |
Data încărcării | 10 Iunie 2021, 17:44 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:52:14: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' bfs(nod,1); ^ componenteconexe.cpp:24:5: error: in passing argument 2 of 'int bfs(int, int&)' int bfs(int start, int &vz) ^ componenteconexe.cpp:48:13: warning: unused variable 'i' [-Wunused-variable] int nod,i,j; ^ componenteconexe.cpp:48:15: warning: unused variable 'j' [-Wunused-variable] int nod,i,j; ^
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ă.