#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 | #34472622 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 867 B |
Data încărcării | 03 Februarie 2022, 10:24 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp: In function 'void BFS(int, int)': componenteconexe.cpp:6:5: error: 'v' was not declared in this scope v[pl]=nrc; ^ componenteconexe.cpp:7:5: error: 'p' was not declared in this scope p=u=1; ^ componenteconexe.cpp:7:7: error: 'u' was not declared in this scope p=u=1; ^ componenteconexe.cpp:8:5: error: 'c' was not declared in this scope c[p]=pl; ^ componenteconexe.cpp:11:9: error: 'x' was not declared in this scope x=c[p]; ^ componenteconexe.cpp:12:13: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ componenteconexe.cpp:12:21: error: 'n' was not declared in this scope for(i=1; i<=n; i++) ^ componenteconexe.cpp:13:16: error: 'a' was not declared in this scope if(a[x][i]==1 && v[i]==0) ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:35:9: error: 'nrc' was not declared in this scope nrc++; ^ componenteconexe.cpp:38:8: error: 'nrc' was not declared in this scope g<<nrc<<endl; ^
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ă.