#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50157141 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 821 B |
Data încărcării | 28 Martie 2024, 23:24 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp: In function 'void df1(int)': tare_conexitate.cpp:8:12: error: 's' was not declared in this scope if(s[i]==0 && a[x][i]==1) ^ tare_conexitate.cpp: In function 'void df2(int)': tare_conexitate.cpp:16:12: error: 'p' was not declared in this scope if(p[i]==0 && a[i][x]==1) ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:35:13: error: 'C' was not declared in this scope C++; ^ tare_conexitate.cpp:36:19: error: 'dfs1' was not declared in this scope dfs1(i); ^ tare_conexitate.cpp:37:19: error: 'dfs2' was not declared in this scope dfs2(i); ^ tare_conexitate.cpp:43:13: error: 'C' was not declared in this scope 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ă.