#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 | #6060265 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 928 B |
Data încărcării | 11 Octombrie 2017, 09:40 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:58:1: error: 'ofstrea' was not declared in this scope ofstrea g ("componenteconexe.out"); ^ componenteconexe.cpp:58:9: error: expected ';' before 'g' ofstrea g ("componenteconexe.out"); ^ componenteconexe.cpp:67:1: error: 'g' was not declared in this scope g<<conexe(); ^ componenteconexe.cpp:75:3: error: 'gg' was not declared in this scope {gg<<i; ^ componenteconexe.cpp:56:15: warning: unused variable 'j' [-Wunused-variable] { int m,x,y,i,j,ok=0; ^ componenteconexe.cpp:56:17: warning: unused variable 'ok' [-Wunused-variable] { int m,x,y,i,j,ok=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ă.