#2282
ComponenteConexe4
Se consideră un graf neorientat cu n
vârfuri și m
muchii. Cele m
muchii se elimină pe rând din graf. Pentru fiecare muchie eliminată trebuie să spuneți câte componente conexe are graful.
Problema | ComponenteConexe4 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58571040 | Utilizator | |
Fișier | componenteconexe4.cpp | Dimensiune | 985 B |
Data încărcării | 21 Iunie 2025, 13:40 | Scor / rezultat | Eroare de compilare |
componenteconexe4.cpp:4:14: warning: missing terminating " character [enabled by default] ifstream fin("componenteconexe5.in ^ componenteconexe4.cpp:4:1: error: missing terminating " character ifstream fin("componenteconexe5.in ^ componenteconexe4.cpp:6:1: error: types may not be defined in parameter types { ^ componenteconexe4.cpp:8:16: error: expected ')' before ';' token }muchii[500001]; ^ componenteconexe4.cpp: In function 'void citire()': componenteconexe4.cpp:18:9: error: 'muchii' was not declared in this scope muchii[i].x=x; ^ componenteconexe4.cpp: In function 'int main()': componenteconexe4.cpp:34:17: error: 'muchii' was not declared in this scope int x = muchii[i].x, y = muchii[i].y; ^ componenteconexe4.cpp:35:14: error: 'y' was not declared in this scope a[x][y] = a[y][x] = 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe4 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ă.