#438
ComponenteConexe
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
Problema | ComponenteConexe | Operații I/O |
componenteconexe.in /componenteconexe.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #19086293 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 822 B |
Data încărcării | 26 Noiembrie 2019, 17:38 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:6:38: error: redefinition of 'int k' int a[101][101],i,n,j,k,viz[101],nrc,k,b; ^ componenteconexe.cpp:6:23: error: 'int k' previously declared here int a[101][101],i,n,j,k,viz[101],nrc,k,b; ^ componenteconexe.cpp: In function 'int dfs(int, int)': componenteconexe.cpp:15:16: error: too few arguments to function 'int dfs(int, int)' dfs(l); ^ componenteconexe.cpp:7:5: note: declared here int dfs(int x,int d) ^ componenteconexe.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:27:10: error: too few arguments to function 'int dfs(int, int)' dfs(1); ^ componenteconexe.cpp:7:5: note: declared here int dfs(int x,int d) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe 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ă.