#438
ComponenteConexe
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 | #27406963 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 1.54 KB |
Data încărcării | 20 Ianuarie 2021, 19:39 | Scor / rezultat | 100 puncte |
componenteconexe.cpp: In function 'void comp_conexe(int, int (*)[101])': componenteconexe.cpp:58:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j = 0; j < v[i].size(); j++) ^ componenteconexe.cpp: In function 'void citire(int*, int (*)[101])': componenteconexe.cpp:13:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", n); ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:66:48: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("componenteconexe.in", "r", stdin); ^ componenteconexe.cpp:67:49: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("componenteconexe.out", "w", stdout); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 60 | 60 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
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ă.