#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 | #64316646 | Utilizator | |
| Fișier | componenteconexe.cpp | Dimensiune | 1.01 KB |
| Data încărcării | 29 Aprilie 2026, 12:01 | Scor/rezultat | Eroare de compilare |
componenteconexe.cpp:77:14: warning: missing terminating ' character 77 | g << k << ' | ^ componenteconexe.cpp:77:14: error: missing terminating ' character componenteconexe.cpp:78:1: warning: missing terminating ' character 78 | '; | ^ componenteconexe.cpp:78:1: error: missing terminating ' character 78 | '; | ^~ componenteconexe.cpp:88:21: warning: missing terminating ' character 88 | g << ' | ^ componenteconexe.cpp:88:21: error: missing terminating ' character componenteconexe.cpp:89:1: warning: missing terminating ' character 89 | '; | ^ componenteconexe.cpp:89:1: error: missing terminating ' character 89 | '; | ^~ componenteconexe.cpp: In function ‘int main()’: componenteconexe.cpp:80:8: error: expected primary-expression before ‘for’ 80 | for(i = 1; i <= k; i++) | ^~~ componenteconexe.cpp:80:21: warning: statement has no effect [-Wunused-value] 80 | for(i = 1; i <= k; i++) | ~~^~~~ componenteconexe.cpp:80:30: error: expected ‘;’ before ‘)’ token 80 | for(i = 1; i <= k; i++) | ^ | ;
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ă.