#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 | #26235301 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 414 B |
Data încărcării | 27 Noiembrie 2020, 18:17 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:1:1: error: 'include' does not name a type include <bits/stdc++.h> ^ componenteconexe.cpp:3:1: error: 'ifstream' does not name a type ifstream fin("dfs.in"); ^ componenteconexe.cpp:4:1: error: 'ofstream' does not name a type ofstream fout("dfs.out"); ^ componenteconexe.cpp: In function 'void dfs(int)': componenteconexe.cpp:7:3: error: 'fout' was not declared in this scope { fout << v << " "; ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:14:3: error: 'fin' was not declared in this scope { fin >> n >> m >> p; ^
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ă.