#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 | #28519624 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 1.85 KB |
Data încărcării | 09 Martie 2021, 09:38 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:49:9: error: redefinition of 'int c [105]' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:5: error: 'int c [105]' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:12: error: redefinition of 'int st' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:12: error: 'int st' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:16: error: redefinition of 'int dr' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:16: error: 'int dr' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:20: error: redefinition of 'int x' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:20: error: 'int x' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:23: error: redefinition of 'int y' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:23: error: 'int y' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:32: error: redefinition of 'int viz [105]' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:26: error: 'int viz [105]' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:35: error: redefinition of 'int n' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:35: error: 'int n' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:46: error: redefinition of 'int a [105][105]' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:38: error: 'int a [105][105]' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:49: error: redefinition of 'int comp' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:49: error: 'int comp' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:55: error: redefinition of 'int i' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:55: error: 'int i' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:49:58: error: redefinition of 'int j' int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp:4:58: error: 'int j' previously declared here int c[NN], st, dr, x, y, viz[NN], n, a[NN][NN], comp, i, j; ^ componenteconexe.cpp: In function 'void BFS(int, int)': componenteconexe.cpp:50:6: error: redefinition of 'void BFS(int, int)' void BFS(int i,int val) ^ componenteconexe.cpp:5:6: error: 'void BFS(int, int)' previously defined here void BFS(int i,int val) ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:67:5: error: redefinition of 'int main()' int main() ^ componenteconexe.cpp:22:5: error: 'int main()' previously defined here int main() ^
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ă.