#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 | #63466849 | Utilizator | |
| Fișier | tare_conexitate.cpp | Dimensiune | 460 B |
| Data încărcării | 04 Martie 2026, 15:42 | Scor/rezultat | Eroare de compilare |
tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:18:5: error: expected ';' before 'for' for(int i=1;i<=n;i++) ^ tare_conexitate.cpp:18:18: warning: statement has no effect [-Wunused-value] for(int i=1;i<=n;i++) ^ tare_conexitate.cpp:18:25: error: expected ';' before ')' token for(int i=1;i<=n;i++) ^ tare_conexitate.cpp:23:11: error: 'DFS1' was not declared in this scope DFS1(i); ^ tare_conexitate.cpp:24:11: error: 'DFS2' was not declared in this scope DFS2(i); ^ tare_conexitate.cpp:25:13: error: expected unqualified-id before numeric constant for(int 9=1;i<=n;i++) ^ tare_conexitate.cpp:25:13: error: expected ';' before numeric constant tare_conexitate.cpp:25:14: error: lvalue required as left operand of assignment for(int 9=1;i<=n;i++) ^ tare_conexitate.cpp:25:18: warning: for increment expression has no effect [-Wunused-value] for(int 9=1;i<=n;i++) ^ tare_conexitate.cpp:25:21: error: expected ')' before ';' token for(int 9=1;i<=n;i++) ^ tare_conexitate.cpp:25:25: error: expected ';' before ')' token for(int 9=1;i<=n;i++) ^
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ă.