#583
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 | #57530414 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 1.65 KB |
Data încărcării | 03 Aprilie 2025, 13:51 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp:38:17: error: redefinition of 'int a [1001][1001]' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:5: error: 'int a [1001][1001]' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:38:20: error: redefinition of 'int n' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:20: error: 'int n' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:38:23: error: redefinition of 'int m' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:23: error: 'int m' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:38:40: error: redefinition of 'int viz [1001][1001]' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:26: error: 'int viz [1001][1001]' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:38:53: error: redefinition of 'int gasca [1001]' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:43: error: 'int gasca [1001]' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:38:56: error: redefinition of 'int x' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:56: error: 'int x' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:38:59: error: redefinition of 'int y' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:59: error: 'int y' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:38:62: error: redefinition of 'int g' int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp:4:62: error: 'int g' previously declared here int a[1001][1001], n, m, viz[1001][1001], gasca[1001], x, y, g; ^ tare_conexitate.cpp: In function 'void dfs(int, int)': tare_conexitate.cpp:39:6: error: redefinition of 'void dfs(int, int)' void dfs(int nod, int x){ ^ tare_conexitate.cpp:5:6: error: 'void dfs(int, int)' previously defined here void dfs(int nod, int x){ ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:49:5: error: redefinition of 'int main()' int main() ^ tare_conexitate.cpp:15:5: error: 'int main()' previously defined here int main() ^
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ă.