#1603
ComponenteConexe3
Se dă lista muchiilor unui graf neorientat. Pentru fiecare componentă conexă numim cel mai mic vârf de ea reprezentant al componentei conexe. Determinați reprezentantul componentei conexe cu cele mai multe vârfuri și câte noduri conține aceasta.
Problema | ComponenteConexe3 | Operații I/O |
componenteconexe3.in /componenteconexe3.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #38088425 | Utilizator | |
Fișier | componenteconexe3.cpp | Dimensiune | 926 B |
Data încărcării | 29 Septembrie 2022, 11:57 | Scor / rezultat | Eroare de compilare |
componenteconexe3.cpp:1:10: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] #include <fstream>using namespace std; ^ componenteconexe3.cpp:1:19: warning: extra tokens at end of #include directive [enabled by default] #include <fstream>using namespace std; ^ componenteconexe3.cpp:3:1: error: 'ifstream' does not name a type ifstream fin("componenteconexe3.in"); ^ componenteconexe3.cpp:4:1: error: 'ofstream' does not name a type ofstream fout("componenteconexe3.out"); ^ componenteconexe3.cpp: In function 'void citire()': componenteconexe3.cpp:10:5: error: 'fin' was not declared in this scope fin>>n; ^ componenteconexe3.cpp: In function 'void afis()': componenteconexe3.cpp:51:5: error: 'fout' was not declared in this scope fout<<vf<<" "<<maxn; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe3 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ă.