#4152
LantMaxim1
Se dă lista muchiilor unui graf neorientat cu n
vârfuri și un vârf q
. Să se determine cel mai lung lanț elementar cu extremitatea finală în q
.
Problema | LantMaxim1 | Operații I/O |
lantmaxim1.in /lantmaxim1.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48126463 | Utilizator | |
Fișier | lantmaxim1.cpp | Dimensiune | 1.14 KB |
Data încărcării | 16 Ianuarie 2024, 13:01 | Scor / rezultat | Eroare de compilare |
lantmaxim1.cpp:3:13: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin("lantmaxim1.in"); ^ lantmaxim1.cpp:4:14: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout("lantmaxim1.out"); ^ lantmaxim1.cpp: In function 'void lantmax(int)': lantmaxim1.cpp:21:14: warning: unused variable 'verify' [-Wunused-variable] bool verify=false; ^ lantmaxim1.cpp:25:17: error: 'verify' was not declared in this scope verify =true; ^ lantmaxim1.cpp: In function 'void adancime(int)': lantmaxim1.cpp:38:5: error: 'vizitat' was not declared in this scope vizitat[X] = 1; ^ lantmaxim1.cpp: In function 'int main()': lantmaxim1.cpp:57:22: error: expected initializer before '>=' token for(int i=maxim,i>=1;i--) ^ lantmaxim1.cpp:57:22: error: expected ';' before '>=' token lantmaxim1.cpp:57:22: error: expected primary-expression before '>=' token
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LantMaxim1 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ă.