#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 | #40053059 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 1.37 KB |
Data încărcării | 25 Noiembrie 2022, 08:54 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:1:20: warning: extra tokens at end of #include directive [enabled by default] #include <iostream>#include <fstream>using namespace std; ^ componenteconexe.cpp:1:29: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] #include <iostream>#include <fstream>using namespace std; ^ componenteconexe.cpp:3:1: error: 'ifstream' does not name a type ifstream in("componenteconexe.in"); ^ componenteconexe.cpp:4:1: error: 'ofstream' does not name a type ofstream out("componenteconexe.out"); ^ componenteconexe.cpp: In function 'void bfs2(int)': componenteconexe.cpp:43:9: error: 'out' was not declared in this scope out<<y<<' '; ^ componenteconexe.cpp:54:5: error: 'out' was not declared in this scope out<<'\n'; ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:63:5: error: 'in' was not declared in this scope in>>n; ^ componenteconexe.cpp:80:5: error: 'out' was not declared in this scope out<<nrc<<'\n'; ^
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ă.