#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 | #4469599 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 944 B |
Data încărcării | 27 Februarie 2017, 13:56 | Scor / rezultat | Eroare de compilare |
tare_conexitate.cpp: In function 'void citire()': tare_conexitate.cpp:7:5: error: expected initializer before 'cin' cin>>n>>m; ^ tare_conexitate.cpp:10:17: error: 'y' was not declared in this scope cin>>x>>y; ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:41:9: error: expected ';' before '}' token } ^ tare_conexitate.cpp:42:9: error: 'g' was not declared in this scope g<<nrc<<endl; ^ tare_conexitate.cpp:50:9: error: 'f' was not declared in this scope f.close(); ^ tare_conexitate.cpp:30:11: warning: unused variable 'j' [-Wunused-variable] int i,j; ^
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ă.