#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 | #64080163 | Utilizator | |
| Fișier | componenteconexe.cpp | Dimensiune | 945 B |
| Data încărcării | 16 Aprilie 2026, 08:12 | Scor/rezultat | Eroare de compilare |
componenteconexe.cpp:39:14: warning: missing terminating ' character 39 | g << k << ' | ^ componenteconexe.cpp:39:14: error: missing terminating ' character componenteconexe.cpp:40:1: warning: missing terminating ' character 40 | '; | ^ componenteconexe.cpp:40:1: error: missing terminating ' character 40 | '; | ^~ componenteconexe.cpp:45:21: warning: missing terminating ' character 45 | g << ' | ^ componenteconexe.cpp:45:21: error: missing terminating ' character componenteconexe.cpp:46:1: warning: missing terminating ' character 46 | '; | ^ componenteconexe.cpp:46:1: error: missing terminating ' character 46 | '; | ^~ componenteconexe.cpp: In function ‘int main()’: componenteconexe.cpp:41:8: error: expected primary-expression before ‘for’ 41 | for(i = 1; i <= k; i++) | ^~~ componenteconexe.cpp:41:21: warning: statement has no effect [-Wunused-value] 41 | for(i = 1; i <= k; i++) | ~~^~~~ componenteconexe.cpp:41:30: error: expected ‘;’ before ‘)’ token 41 | 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ă.