#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 | #63546904 | Utilizator | |
| Fișier | tare_conexitate.cpp | Dimensiune | 845 B |
| Data încărcării | 09 Martie 2026, 09:10 | Scor/rezultat | Eroare de compilare |
tare_conexitate.cpp: In function 'void DFS(int, int)': tare_conexitate.cpp:11:22: error: expected ')' before ';' token if(A[i][j]==1; && S[j]==0) ^ tare_conexitate.cpp:11:28: error: expected ';' before '[' token if(A[i][j]==1; && S[j]==0) ^ tare_conexitate.cpp:11:24: warning: statement has no effect [-Wunused-value] if(A[i][j]==1; && S[j]==0) ^ tare_conexitate.cpp:11:27: error: label 'S' used but not defined if(A[i][j]==1; && S[j]==0) ^
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ă.