#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 | #43204423 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 1.16 KB |
Data încărcării | 06 Aprilie 2023, 14:55 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:6:11: error: variable 'std::ifstream f' has initializer but incomplete type ifstream f("componenteconexe.in"); ^ componenteconexe.cpp:7:11: error: variable 'std::ofstream g' has initializer but incomplete type ofstream g("componenteconexe.out"); ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:44:17: error: 'endl' 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ă.