Borderou de evaluare (job #2271171)
Utilizator | Data | 28 octombrie 2018 10:57:30 | |
---|---|---|---|
Problema | Flux maxim de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool Dijkstra(int, int, int)':
main.cpp:31:7: error: 'class std::set<std::pair<int, int> >' has no member named 'push'
Q.push({0,s});
^~~~
main.cpp:34:22: error: 'class std::set<std::pair<int, int> >' has no member named 'top'
int cost = Q.top().first;
^~~
main.cpp:35:21: error: 'class std::set<std::pair<int, int> >' has no member named 'top'
int nod = Q.top().second;
^~~
main.cpp:36:11: error: 'class std::set<std::pair<int, int> >' has no member named 'pop'
Q.pop();
^~~
main.cpp:51:23: error: 'class std::set<std::pair<int, int> >' has no member named 'push'
Q.push({d[a],a});
^~~~
main.cpp:34:13: warning: unused variable 'cost' [-Wunused-variable]
int cost = Q.top().first;
^~~~
main.cpp:59:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (d[D] == inf)
^~
main.cpp:62:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
int x = D;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !