#475
Se dă lista muchiilor unui graf neorientat cu n
vârfuri și două vârfuri p q
. Să se determine toate lanțurile elementare cu extremitățile p
și q
.
Problema | Lant | Operații I/O |
![]() lant.in /lant.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57058954 | Utilizator | |
Fișier | lant.cpp | Dimensiune | 1.70 KB |
Data încărcării | 14 Martie 2025, 11:10 | Scor / rezultat | Eroare de compilare |
lant.cpp:73:13: error: redefinition of 'std::ifstream cin' ifstream cin("lant.in"); ^ lant.cpp:5:10: error: 'std::ifstream cin' previously declared here ifstream cin("lant.in"); ^ lant.cpp:74:14: error: redefinition of 'std::ofstream cout' ofstream cout("lant.out"); ^ lant.cpp:6:10: error: 'std::ofstream cout' previously declared here ofstream cout("lant.out"); ^ lant.cpp:76:13: error: redefinition of 'int a [21][21]' int a[21][21],w[21],v[21],n,m; ^ lant.cpp:8:5: error: 'int a [21][21]' previously declared here int a[21][21],w[21],v[21],n,m; ^ lant.cpp:76:19: error: redefinition of 'int w [21]' int a[21][21],w[21],v[21],n,m; ^ lant.cpp:8:15: error: 'int w [21]' previously declared here int a[21][21],w[21],v[21],n,m; ^ lant.cpp:76:25: error: redefinition of 'int v [21]' int a[21][21],w[21],v[21],n,m; ^ lant.cpp:8:21: error: 'int v [21]' previously declared here int a[21][21],w[21],v[21],n,m; ^ lant.cpp:76:27: error: redefinition of 'int n' int a[21][21],w[21],v[21],n,m; ^ lant.cpp:8:27: error: 'int n' previously declared here int a[21][21],w[21],v[21],n,m; ^ lant.cpp:76:29: error: redefinition of 'int m' int a[21][21],w[21],v[21],n,m; ^ lant.cpp:8:29: error: 'int m' previously declared here int a[21][21],w[21],v[21],n,m; ^ lant.cpp:78:5: error: redefinition of 'int x' int x,y; ^ lant.cpp:10:5: error: 'int x' previously declared here int x,y; ^ lant.cpp:78:7: error: redefinition of 'int y' int x,y; ^ lant.cpp:10:7: error: 'int y' previously declared here int x,y; ^ lant.cpp:79:5: error: redefinition of 'int p' int p,q; ^ lant.cpp:11:5: error: 'int p' previously declared here int p,q; ^ lant.cpp:79:7: error: redefinition of 'int q' int p,q; ^ lant.cpp:11:7: error: 'int q' previously declared here int p,q; ^ lant.cpp: In function 'void afis(int)': lant.cpp:81:6: error: redefinition of 'void afis(int)' void afis(int k){ ^ lant.cpp:13:6: error: 'void afis(int)' previously defined here void afis(int k){ ^ lant.cpp: In function 'void back(int)': lant.cpp:88:6: error: redefinition of 'void back(int)' void back(int k){ ^ lant.cpp:20:6: error: 'void back(int)' previously defined here void back(int k){ ^ lant.cpp: In function 'int main()': lant.cpp:104:5: error: redefinition of 'int main()' int main() ^ lant.cpp:36:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Lant 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ă.