#583
Tare conexitate
Se dă un graf orientat cu n
noduri. Să se determine câte componente tare conexe are graful dat.
Problema | Tare conexitate | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55904122 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 1.02 KB |
Data încărcării | 30 Ianuarie 2025, 05:54 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp:44:23: warning: missing terminating " character [enabled by default] cout << nrcomp << " ^ tare_conexitate.cpp:44:5: error: missing terminating " character cout << nrcomp << " ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:39:27: error: 'df__succesor' was not declared in this scope df__succesor(i); df_predecesor(i); ^ tare_conexitate.cpp:42:21: error: 'comp_tare_conexetc' was not declared in this scope comp_tare_conexetc[j] = nrcomp; ^ tare_conexitate.cpp:46:5: error: expected primary-expression before 'return' return 0; ^ tare_conexitate.cpp:46:5: error: expected ';' before 'return'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Tare conexitate 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ă.