#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 | #58210235 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 1.08 KB |
Data încărcării | 20 Mai 2025, 13:32 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp: In function 'void citire()': tare_conexitate.cpp:6:13: error: 'm' was not declared in this scope cin>>n>>m; ^ tare_conexitate.cpp:10:9: error: 'fin' was not declared in this scope fin>>x>>y; ^ tare_conexitate.cpp: In function 'void DFS1(int)': tare_conexitate.cpp:17:5: error: 'V' was not declared in this scope V[x]=1; ^ tare_conexitate.cpp:21:9: error: 'k' was not declared in this scope S[++k]=x; ^ tare_conexitate.cpp: In function 'void DFSt(int)': tare_conexitate.cpp:26:5: error: 'V' was not declared in this scope V[x]=1; ///cout<<x<<' '; ^ tare_conexitate.cpp: In function 'int nod_start()': tare_conexitate.cpp:35:13: error: 'V' was not declared in this scope if (V[i] == 0) ^ tare_conexitate.cpp: In function 'void Kosaraju()': tare_conexitate.cpp:50:9: error: 'V' was not declared in this scope V[i] = 0; ^ tare_conexitate.cpp:52:18: error: 'k' was not declared in this scope for (int i = k; i >=1; i--) ^ tare_conexitate.cpp:53:13: error: 'V' was not declared in this scope if (V[S[i]] == 0) ^
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ă.