#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 | #43311996 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 722 B |
Data încărcării | 19 Aprilie 2023, 09:38 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:13:13: error: invalid types 'int[int]' for array subscript a[x][y]=1; ^ tare_conexitate.cpp:21:26: error: invalid types 'int[int]' for array subscript if(a[j][i]=1 && a[i][k]=1) ^ tare_conexitate.cpp:21:39: error: invalid types 'int[int]' for array subscript if(a[j][i]=1 && a[i][k]=1) ^ tare_conexitate.cpp:23:27: error: invalid types 'int[int]' for array subscript a[j][k]=1; ^ tare_conexitate.cpp:32:22: error: invalid types 'int[int]' for array subscript if(a[i][j]==1 && a[j][i]==1 &&i!=j) ^ tare_conexitate.cpp:32:36: error: invalid types 'int[int]' for array subscript if(a[i][j]==1 && a[j][i]==1 &&i!=j) ^ tare_conexitate.cpp:38:10: error: 'i' was not declared in this scope if(a[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ă.