#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 | #14492644 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 840 B |
Data încărcării | 06 Martie 2019, 08:42 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:4:13: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin("componenteconexe.in"); ^ componenteconexe.cpp:5:15: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout ("componenteconexe.out"); ^ componenteconexe.cpp: In function 'void citire(int&, int (*)[105])': componenteconexe.cpp:8:13: warning: unused variable 'm' [-Wunused-variable] int i,j,m; ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:34:5: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ componenteconexe.cpp:36:5: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ componenteconexe.cpp:32:24: warning: unused variable 'x' [-Wunused-variable] {int n,a[105][105]={0},x,cc[105]={0},nrc=0; ^
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ă.