#438
ComponenteConexe
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
Problema | ComponenteConexe | Operații I/O |
componenteconexe.in /componenteconexe.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48043182 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 974 B |
Data încărcării | 14 Ianuarie 2024, 10:22 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:7:55: error: size of array 'a' is too large int viz[10005],dr,st,coada[10005],cnt,a[100005][100005],x,y,n; ^ componenteconexe.cpp: In function 'void bfs(int)': componenteconexe.cpp:15:9: error: 'j' was not declared in this scope j=coada[st]; ^ componenteconexe.cpp:22:29: error: 'a' was not declared in this scope if(viz[i]==0 && a[j][i]==1 ) ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:39:7: error: 'a' was not declared in this scope a[x][y]=1; ^ componenteconexe.cpp:42:5: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ componenteconexe.cpp:46:14: error: 'BFS' was not declared in this scope BFS(i); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe 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ă.