#479
Se dă lista muchiilor unui graf neorientat cu n
vârfuri și două vârfuri p q
. Să se determine cel mai lung lanț elementar cu extremitățile p
și q
.
Problema | LantMaxim | Operații I/O |
![]() lantmaxim.in /lantmaxim.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49597582 | Utilizator | |
Fișier | lantmaxim.cpp | Dimensiune | 1010 B |
Data încărcării | 08 Martie 2024, 14:18 | Scor / rezultat | Eroare de compilare |
lantmaxim.cpp:6:13: warning: missing terminating " character [enabled by default] ifstream in("lantmaxim.in; ^ lantmaxim.cpp:6:1: error: missing terminating " character ifstream in("lantmaxim.in; ^ lantmaxim.cpp:7:13: error: expected ',' or '...' before '(' token ofstream out("lantmaxim.out"); ^ lantmaxim.cpp:7:30: error: expected ')' before ';' token ofstream out("lantmaxim.out"); ^ lantmaxim.cpp: In function 'int tip(int)': lantmaxim.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ lantmaxim.cpp: In function 'int bac(int)': lantmaxim.cpp:49:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ lantmaxim.cpp: In function 'int main()': lantmaxim.cpp:56:9: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in>>n>>m; ^ lantmaxim.cpp:58:13: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in>>a>>b; ^ lantmaxim.cpp:61:9: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' in>>p>>q; ^ lantmaxim.cpp:63:5: error: 'out' was not declared in this scope out<<p<<' '; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LantMaxim 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ă.