#4781
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
| Problema | ComponenteConexe6 | Operații I/O |
componenteconexe6.in/componenteconexe6.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63930731 | Utilizator | |
| Fișier | componenteconexe6.cpp | Dimensiune | 1.27 KB |
| Data încărcării | 27 Martie 2026, 11:20 | Scor/rezultat | Eroare de compilare |
componenteconexe6.cpp: In function 'void bfs(int, int)': componenteconexe6.cpp:18:16: error: 'k' was not declared in this scope v[start] = k; ^ componenteconexe6.cpp: In function 'int main()': componenteconexe6.cpp:55:23: warning: value computed is not used [-Wunused-value] g <<j < " "; ^ componenteconexe6.cpp:59:5: error: expected '}' at end of input } ^ componenteconexe6.cpp:59:5: error: expected '}' at end of input componenteconexe6.cpp:59:5: error: expected 'while' at end of input componenteconexe6.cpp:59:5: error: expected '(' at end of input componenteconexe6.cpp:59:5: error: expected primary-expression at end of input componenteconexe6.cpp:59:5: error: expected ')' at end of input componenteconexe6.cpp:59:5: error: expected ';' at end of input componenteconexe6.cpp:34:15: warning: unused variable 'nod' [-Wunused-variable] int i, j, nod; ^ componenteconexe6.cpp:59:5: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe6 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ă.