#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 | #56243601 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 886 B |
Data încărcării | 11 Februarie 2025, 14:21 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp: In function 'void bfs(int)': componenteconexe.cpp:11:4: error: 'k' was not declared in this scope k=1; ^ componenteconexe.cpp:30:1: error: a function-definition is not allowed here before '{' token { ^ componenteconexe.cpp:12:16: warning: unused variable 'i' [-Wunused-variable] int c[101], i, u, y, p; ^ componenteconexe.cpp:54: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ă.