#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 | #55705312 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 1.51 KB |
Data încărcării | 22 Ianuarie 2025, 22:59 | Scor / rezultat | 0 puncte |
componenteconexe.cpp: In function 'int componente2(int (*)[101], int, int*)': componenteconexe.cpp:35:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while(x=primul_nevizitat(viz,n)) ^ componenteconexe.cpp: In function 'void componente1(int (*)[101], int, int*)': componenteconexe.cpp:47:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while(x=primul_nevizitat(viz,n)) ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:65:39: warning: unused variable 'k' [-Wunused-variable] int a[101][101]={0}, n, viz[101], k,x,y; ^ componenteconexe.cpp:66:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 60 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 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ă.