#1551
Se dă mulțimea V a arcelor unui graf orientat cu n vârfuri.
Să se determine drumul simplu de lungime maximă cu extremitatea inițială în vârful p din graf.
folclor
| Problema | DSLM | Operații I/O |
dslm.in/dslm.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 2 MB
/
Stivă 2 MB
|
| Id soluție | #64497966 | Utilizator | |
| Fișier | dslm.cpp | Dimensiune | 580 B |
| Data încărcării | 11 Mai 2026, 12:18 | Scor/rezultat | Eroare de compilare |
dslm.cpp: In function ‘bool cond(int)’: dslm.cpp:11:13: error: ‘p’ was not declared in this scope 11 | if(s[k]=p) | ^ dslm.cpp: In function ‘void BKT(int)’: dslm.cpp:16:18: error: array must be initialized with a brace-enclosed initializer 16 | int s[k]=i; | ^ dslm.cpp:18:16: error: ‘gasit’ was not declared in this scope 18 | if(gasit(k)) | ^~~~~ dslm.cpp:19:17: error: ‘afisare’ was not declared in this scope 19 | afisare(); | ^~~~~~~ dslm.cpp:21:13: error: ‘bkt’ was not declared in this scope 21 | bkt(k+1); | ^~~ dslm.cpp:17:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 17 | if(cond(k)) | ^ dslm.cpp:16:13: warning: unused variable ‘s’ [-Wunused-variable] 16 | int s[k]=i; | ^ dslm.cpp: In function ‘bool cond(int)’: dslm.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type] 13 | } | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DSLM 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ă.