#583
Se dă un graf orientat cu n noduri. Să se determine câte componente tare conexe are graful dat.
| Problema | Tare conexitate | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63883457 | Utilizator | |
| Fișier | tare_conexitate.cpp | Dimensiune | 624 B |
| Data încărcării | 24 Martie 2026, 15:13 | Scor/rezultat | Eroare de compilare |
tare_conexitate.cpp:4:1: error: expected initializer before 'void' void rw(int a[101][101],int n) ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:18:11: error: 'rw' was not declared in this scope rw(a,n); ^ tare_conexitate.cpp:20:21: error: expected ')' before ';' token if(viz[i]==0;) ^ tare_conexitate.cpp:20:22: error: expected primary-expression before ')' token if(viz[i]==0;) ^ tare_conexitate.cpp:20:22: error: expected ';' before ')' token tare_conexitate.cpp:14:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ tare_conexitate.cpp:16:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] {scanf("%d%d",&x,&y); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Tare conexitate 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ă.