#441
ComponenteConexe1
Se dă lista muchiilor unui graf neorientat. Să se determine numărul minim de muchii care trebuie adăugate pentru ca graful să devină conex, precum și un set de asemenea muchii.
Problema | ComponenteConexe1 | Operații I/O |
componenteconexe1.in /componenteconexe1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50317120 | Utilizator | |
Fișier | componenteconexe1.cpp | Dimensiune | 954 B |
Data încărcării | 04 Aprilie 2024, 12:21 | Scor / rezultat | Eroare de compilare |
componenteconexe1.cpp:4:12: error: 'componenteconexe1' was not declared in this scope ifstream f(componenteconexe1.in); ^ componenteconexe1.cpp:5:12: error: 'componenteconexe1' was not declared in this scope ofstream g(componenteconexe1.out); ^ componenteconexe1.cpp:6:9: error: storage size of 'viz' isn't known int viz[], a[][101], n, nrc, cnt; ^ componenteconexe1.cpp:6:19: error: storage size of 'a' isn't known int viz[], a[][101], n, nrc, cnt; ^ componenteconexe1.cpp: In function 'int main()': componenteconexe1.cpp:33:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] bfs[i]; ^ componenteconexe1.cpp:33:18: warning: value computed is not used [-Wunused-value] componenteconexe1.cpp:33:18: warning: statement has no effect [-Wunused-value] componenteconexe1.cpp: At global scope: componenteconexe1.cpp:40:1: error: 'i' does not name a type i=1; ^ componenteconexe1.cpp:41:1: error: expected unqualified-id before 'while' while (viz[i]!=1) ^ componenteconexe1.cpp:43:1: error: 'x' does not name a type x=i; ^ componenteconexe1.cpp:44:1: error: expected unqualified-id before 'for' for (i=2;i<=nrc;i++) ^ componenteconexe1.cpp:44:10: error: 'i' does not name a type for (i=2;i<=nrc;i++) ^ componenteconexe1.cpp:44:17: error: 'i' does not name a type for (i=2;i<=nrc;i++) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe1 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ă.