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