#438
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 | #53815888 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 794 B |
Data încărcării | 12 Noiembrie 2024, 12:42 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:45:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int (*)[100]' citire(a,n); ^ componenteconexe.cpp:8:6: error: in passing argument 1 of 'void citire(int&, int (*)[100])' void citire(int &n, int a[100][100]) ^ componenteconexe.cpp:46:10: error: 'vf' was not declared in this scope cin>>vf; ^ componenteconexe.cpp:53:5: error: expected ';' before 'cout' cout<<nrcompconex; ^
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ă.