#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 | #64941577 | Utilizator | |
| Fișier | componenteconexe.cpp | Dimensiune | 670 B |
| Data încărcării | 18 Iunie 2026, 18:45 | Scor/rezultat | Eroare de compilare |
componenteconexe.cpp: In function ‘int main()’: componenteconexe.cpp:17:20: error: expected ‘)’ before ‘;’ token 17 | while(fin>>x>>y;){ | ~ ^ | ) componenteconexe.cpp:17:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 17 | while(fin>>x>>y;){ | ^~~~~ componenteconexe.cpp:17:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 17 | while(fin>>x>>y;){ | ^ componenteconexe.cpp:17:21: error: expected primary-expression before ‘)’ token
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ă.