#484
LantMinim
Se dă lista muchiilor unui graf neorientat și două vârfuri p q
. Să se determine cel mai scurt lanț cu extremitățile p q
.
Problema | LantMinim | Operații I/O |
lantminim.in /lantminim.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54689002 | Utilizator | |
Fișier | lantminim.cpp | Dimensiune | 1.73 KB |
Data încărcării | 05 Decembrie 2024, 13:41 | Scor / rezultat | Eroare de compilare |
lantminim.cpp:53:12: error: redefinition of 'std::ifstream in' ifstream in("lantminim.in"); ^ lantminim.cpp:3:10: error: 'std::ifstream in' previously declared here ifstream in("lantminim.in"); ^ lantminim.cpp:54:13: error: redefinition of 'std::ofstream out' ofstream out("lantminim.out"); ^ lantminim.cpp:4:10: error: 'std::ofstream out' previously declared here ofstream out("lantminim.out"); ^ lantminim.cpp:55:5: error: redefinition of 'int n' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:5: error: 'int n' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:7: error: redefinition of 'int i' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:7: error: 'int i' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:9: error: redefinition of 'int p' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:9: error: 'int p' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:11: error: redefinition of 'int q' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:11: error: 'int q' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:13: error: redefinition of 'int r' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:13: error: 'int r' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:15: error: redefinition of 'int x' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:15: error: 'int x' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:17: error: redefinition of 'int y' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:17: error: 'int y' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:19: error: redefinition of 'int k' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:19: error: 'int k' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:21: error: redefinition of 'int copie' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:21: error: 'int copie' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:33: error: redefinition of 'int t [1005]' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:27: error: 'int t [1005]' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:41: error: redefinition of 'int c [1005]' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:35: error: 'int c [1005]' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:49: error: redefinition of 'int v [1005]' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:43: error: 'int v [1005]' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:59: error: redefinition of 'int viz [1005]' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:51: error: 'int viz [1005]' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:55:73: error: redefinition of 'int a [1005][1005]' int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp:5:61: error: 'int a [1005][1005]' previously declared here int n,i,p,q,r,x,y,k,copie,t[1005],c[1005],v[1005],viz[1005],a[1005][1005]; ^ lantminim.cpp: In function 'void bfs(int)': lantminim.cpp:56:6: error: redefinition of 'void bfs(int)' void bfs(int x) ^ lantminim.cpp:6:6: error: 'void bfs(int)' previously defined here void bfs(int x) ^ lantminim.cpp: In function 'int main()': lantminim.cpp:79:5: error: redefinition of 'int main()' int main() ^ lantminim.cpp:29:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LantMinim 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ă.