Borderou de evaluare (job #2847355)
Utilizator | Data | 10 februarie 2022 18:17: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 dijkstra_traversal()':
main.cpp:16:2: error: 'memset' was not declared in this scope
16 | memset(distances, INF, sizeof(int) * (nr_nodes + 1));
| ^~~~~~
main.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <queue>
+++ |+#include <cstring>
4 | #define INF 0x7f7f7f7f
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !