Borderou de evaluare (job #2498413)
Utilizator | Data | 23 noiembrie 2019 21:19:13 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In lambda function:
main.cpp:161:67: error: no matching function for call to 'ext_edge::ext_edge(<brace-enclosed initializer list>)'
h.add(ext_edge{ iterator.to, iterator.cost, (int)node });
^
main.cpp:134:8: note: candidate: ext_edge::ext_edge()
struct ext_edge : public edge {
^~~~~~~~
main.cpp:134:8: note: candidate expects 0 arguments, 3 provided
main.cpp:134:8: note: candidate: constexpr ext_edge::ext_edge(const ext_edge&)
main.cpp:134:8: note: candidate expects 1 argument, 3 provided
main.cpp:134:8: note: candidate: constexpr ext_edge::ext_edge(ext_edge&&)
main.cpp:134:8: note: candidate expects 1 argument, 3 provided
main.cpp: In function 'void dijkstra(unsigned int)':
main.cpp:172:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (++relaxed_nodes < number_of_nodes) {
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !