Borderou de evaluare (job #2518241)
Utilizator | Data | 5 ianuarie 2020 13:11:19 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dijkstra(Graph&)':
main.cpp:42:13: error: 'ignore' is not a member of 'std'
tie(std::ignore, node) = q.top();
^~~
main.cpp:42:30: error: 'tie' was not declared in this scope
tie(std::ignore, node) = q.top();
^
main.cpp:45:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < g.adj_list[node].size(); i++) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:56:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 2; i < dist.size(); i++) {
~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:69:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in", "r", stdin);
^
main.cpp:70:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !