#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 | #49588691 | Utilizator | |
| Fișier | componenteconexe.cpp | Dimensiune | 1.02 KB |
| Data încărcării | 08 Martie 2024, 09:00 | Scor/rezultat | 0 puncte |
componenteconexe.cpp: In function 'void dfs(int)': componenteconexe.cpp:16:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v[k].size();i++) ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:44:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<comp.size();i++) ^ componenteconexe.cpp:42:15: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized] dfs(k); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 60 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
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ă.