#475
Lant
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 | #54149919 | Utilizator | |
Fișier | lant.cpp | Dimensiune | 2.04 KB |
Data încărcării | 20 Noiembrie 2024, 20:10 | Scor / rezultat | Eroare de compilare |
lant.cpp:8:1: error: stray '\310' in program void cautaLanțuri(int nodCurent, int destinatie, vector<vector<int>>& graf, vector<int>& lanțCurent, vector<vector<int>>& lanțuri, vector<bool>& vizitat) { ^ lant.cpp:8:1: error: stray '\233' in program lant.cpp:8:1: error: stray '\310' in program lant.cpp:8:1: error: stray '\233' in program lant.cpp:8:1: error: stray '\310' in program lant.cpp:8:1: error: stray '\233' in program lant.cpp:10:5: error: stray '\310' in program lanțCurent.push_back(nodCurent); ^ lant.cpp:10:5: error: stray '\233' in program lant.cpp:15:9: error: stray '\310' in program lanțuri.push_back(lanțCurent); ^ lant.cpp:15:9: error: stray '\233' in program lant.cpp:15:9: error: stray '\310' in program lant.cpp:15:9: error: stray '\233' in program lant.cpp:20:17: error: stray '\310' in program cautaLanțuri(vecin, destinatie, graf, lanțCurent, lanțuri, vizitat); ^ lant.cpp:20:17: error: stray '\233' in program lant.cpp:20:17: error: stray '\310' in program lant.cpp:20:17: error: stray '\233' in program lant.cpp:20:17: error: stray '\310' in program lant.cpp:20:17: error: stray '\233' in program lant.cpp:26:5: error: stray '\310' in program lanțCurent.pop_back(); ^ lant.cpp:26:5: error: stray '\233' in program lant.cpp:51:5: error: stray '\310' in program vector<vector<int>> lanțuri; ^ lant.cpp:51:5: error: stray '\233' in program lant.cpp:52:5: error: stray '\310' in program vector<int> lanțCurent; ^ lant.cpp:52:5: error: stray '\233' in program lant.cpp:56:5: error: stray '\310' in program cautaLanțuri(p, q, graf, lanțCurent, lanțuri, vizitat); ^ lant.cpp:56:5: error: stray '\233' in program lant.cpp:56:5: error: stray '\310' in program lant.cpp:56:5: error: stray '\233' in program lant.cpp:56:5: error: stray '\310' in program lant.cpp:56:5: error: stray '\233' in program lant.cpp:59:5: error: stray '\310' in program sort(lanțuri.begin(), lanțuri.end()); ^ lant.cpp:59:5: error: stray '\233' in program lant.cpp:59:5: error: stray '\310' in program lant.cpp:59:5: error: stray '\233' in program lant.cpp:62:5: error: stray '\310' in program if (!lanțuri.empty()) { ^ lant.cpp:62:5: error: stray '\233' in program lant.cpp:63:9: error: stray '\310' in program for (const auto& lanț : lanțuri) { ^ lant.cpp:63:9: error: stray '\233' in program lant.cpp:63:9: error: stray '\310' in program lant.cpp:63:9: error: stray '\233' in program lant.cpp:64:13: error: stray '\310' in program for (int i = 0; i < lanț.size(); i++) { ^ lant.cpp:64:13: error: stray '\233' in program lant.cpp:66:17: error: stray '\310' in program fout << lanț[i]; ^ lant.cpp:66:17: error: stray '\233' in program lant.cpp:8:16: error: expected initializer before 'uri' void cautaLanțuri(int nodCurent, int destinatie, vector<vector<int>>& graf, vector<int>& lanțCurent, vector<vector<int>>& lanțuri, vector<bool>& vizitat) { ^
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ă.