Borderou de evaluare (job #3296363)
Utilizator | Data | 12 mai 2025 12:22:11 | |
---|---|---|---|
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(int)':
main.cpp:151:3: error: 'memset' was not declared in this scope
151 | memset(dist, INF, sizeof(dist));
| ^~~~~~
main.cpp:3:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include <queue>
+++ |+#include <cstring>
3 | #pragma GCC optimize("O3", "Ofast", "unroll-loops")
main.cpp:146:7: warning: unused variable 'i' [-Wunused-variable]
146 | int i, newdist, newnode, y;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !