#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 | #58501204 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 987 B |
Data încărcării | 11 Iunie 2025, 21:31 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp: In function 'void citire()': tare_conexitate.cpp:10:5: error: 'cin' was not declared in this scope cin>>n>>m; ^ tare_conexitate.cpp:13:9: error: 'f' was not declared in this scope f>>i>>j; ^ tare_conexitate.cpp:13:12: error: 'i' was not declared in this scope f>>i>>j; ^ tare_conexitate.cpp:13:15: error: 'j' was not declared in this scope f>>i>>j; ^ tare_conexitate.cpp: In function 'void afis()': tare_conexitate.cpp:24:9: error: 'cout' was not declared in this scope cout<<a[i][j]<<" "; ^ tare_conexitate.cpp:25:6: error: 'cout' was not declared in this scope cout<<endl; ^ tare_conexitate.cpp: In function 'void roy()': tare_conexitate.cpp:52:14: error: 'cout' was not declared in this scope k++;cout<<endl; ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:59:15: error: 'cout' was not declared in this scope roy();c=k;cout<<c; ^
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ă.