Borderou de evaluare (job #3199835)
Utilizator | Data | 2 februarie 2024 18:36:51 | |
---|---|---|---|
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 init()':
main.cpp:20:17: error: 'INT_MAX' was not declared in this scope
20 | dmin[i]=INT_MAX;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <queue>
+++ |+#include <climits>
3 | using namespace std;
main.cpp: In function 'void djikstra()':
main.cpp:37:13: warning: unused variable 'topcost' [-Wunused-variable]
37 | int topcost=q.top().first,topnod=q.top().second;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !