#583
Tare conexitate
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 | #46278828 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 959 B |
Data încărcării | 09 Noiembrie 2023, 10:33 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp:40:9: error: stray '\' in program cout<< "\nComponenta tare conexa"<<k<<\n; ^ tare_conexitate.cpp:5:17: error: two or more data types in declaration of 'citire' void int citire() ^ tare_conexitate.cpp: In function 'void tc(int)': tare_conexitate.cpp:30:5: error: 's' was not declared in this scope s[x]=p; ^ tare_conexitate.cpp: In function 'void afistc()': tare_conexitate.cpp:42:16: error: 's' was not declared in this scope if(s[x]==k) ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:52:12: error: 'citire' was not declared in this scope citire(); ^ tare_conexitate.cpp:55:11: error: expected primary-expression before ';' token for(x=; x<=n; x++) ^ tare_conexitate.cpp:56:13: error: 's' was not declared in this scope if(!s[x]) ^
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ă.