#477
Se dă lista muchiilor unui graf neorientat cu n vârfuri și trei vârfuri p q r. Să se determine toate lanțurile elementare cu extremitățile în p și q care nu conțin vârful r.
| Problema | Lanturi1 | Operații I/O |
lanturi1.in/lanturi1.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63656848 | Utilizator | |
| Fișier | lanturi1.cpp | Dimensiune | 849 B |
| Data încărcării | 12 Martie 2026, 22:24 | Scor/rezultat | Eroare de compilare |
lanturi1.cpp:10:5: error: redefinition of 'int n' int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:5:5: error: 'int n' previously declared here int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:10:15: error: redefinition of 'int a [23][23]' int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:5:7: error: 'int a [23][23]' previously declared here int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:10:21: error: redefinition of 'int s [23]' int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:5:17: error: 'int s [23]' previously declared here int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:10:23: error: redefinition of 'int p' int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:5:23: error: 'int p' previously declared here int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:10:25: error: redefinition of 'int q' int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:5:25: error: 'int q' previously declared here int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:10:34: error: redefinition of 'int viz [100]' int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:5:27: error: 'int viz [100]' previously declared here int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:10:37: error: redefinition of 'int r' int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp:5:37: error: 'int r' previously declared here int n,a[23][23],s[23],p,q,viz[100], r; ^ lanturi1.cpp: In function 'void back(int)': lanturi1.cpp:28:11: error: a function-definition is not allowed here before '{' token int main(){ ^ lanturi1.cpp:40:10: error: expected '}' at end of input return 0;} ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Lanturi1 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ă.