#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 | #46454261 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 1010 B |
Data încărcării | 14 Noiembrie 2023, 12:29 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:8:21: error: expected unqualified-id before 'int' int n , a[105][105],int x[105],v[105];; ^ componenteconexe.cpp: In function 'void bf(int, int)': componenteconexe.cpp:13:5: error: 'v' was not declared in this scope v[varf] = nrc; ^ componenteconexe.cpp:14:5: error: 'x' was not declared in this scope x[1] = varf; ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:40:12: error: 'v' was not declared in this scope if(v[i] == 0 ) ^ componenteconexe.cpp:49:16: error: 'v' was not declared in this scope if(v[j] == i) ^
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ă.