#475
Se dă lista muchiilor unui graf neorientat cu n
vârfuri și două vârfuri p q
. Să se determine toate lanțurile elementare cu extremitățile p
și q
.
Problema | Lant | Operații I/O |
![]() lant.in /lant.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58524122 | Utilizator | |
Fișier | lant.cpp | Dimensiune | 2.39 KB |
Data încărcării | 13 Iunie 2025, 22:44 | Scor / rezultat | Eroare de compilare |
lant.cpp:54:5: error: stray '\310' in program for (auto &lanț : sol) { ^ lant.cpp:54:5: error: stray '\233' in program lant.cpp:55:9: error: stray '\310' in program for (int v : lanț) { ^ lant.cpp:55:9: error: stray '\233' in program lant.cpp:118:5: error: stray '\310' in program for (auto &lanț : sol) { ^ lant.cpp:118:5: error: stray '\233' in program lant.cpp:119:9: error: stray '\310' in program for (int v : lanț) { ^ lant.cpp:119:9: error: stray '\233' in program lant.cpp:71:5: error: redefinition of 'int n' int n, m, p, q; ^ lant.cpp:7:5: error: 'int n' previously declared here int n, m, p, q; ^ lant.cpp:71:8: error: redefinition of 'int m' int n, m, p, q; ^ lant.cpp:7:8: error: 'int m' previously declared here int n, m, p, q; ^ lant.cpp:71:11: error: redefinition of 'int p' int n, m, p, q; ^ lant.cpp:7:11: error: 'int p' previously declared here int n, m, p, q; ^ lant.cpp:71:14: error: redefinition of 'int q' int n, m, p, q; ^ lant.cpp:7:14: error: 'int q' previously declared here int n, m, p, q; ^ lant.cpp:72:21: error: redefinition of 'std::vector<std::vector<int> > g' vector<vector<int>> g; ^ lant.cpp:8:21: error: 'std::vector<std::vector<int> > g' previously declared here vector<vector<int>> g; ^ lant.cpp:73:14: error: redefinition of 'std::vector<bool> viz' vector<bool> viz; ^ lant.cpp:9:14: error: 'std::vector<bool> viz' previously declared here vector<bool> viz; ^ lant.cpp:74:13: error: redefinition of 'std::vector<int> path' vector<int> path; ^ lant.cpp:10:13: error: 'std::vector<int> path' previously declared here vector<int> path; ^ lant.cpp:75:21: error: redefinition of 'std::vector<std::vector<int> > sol' vector<vector<int>> sol; ^ lant.cpp:11:21: error: 'std::vector<std::vector<int> > sol' previously declared here vector<vector<int>> sol; ^ lant.cpp: In function 'void dfs(int)': lant.cpp:77:6: error: redefinition of 'void dfs(int)' void dfs(int nod) { ^ lant.cpp:13:6: error: 'void dfs(int)' previously defined here void dfs(int nod) { ^ lant.cpp: In function 'int main()': lant.cpp:93:5: error: redefinition of 'int main()' int main() { ^ lant.cpp:29:5: error: 'int main()' previously defined here int main() { ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Lant 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ă.