Borderou de evaluare (job #2939085)
Utilizator | Data | 12 noiembrie 2022 23:22:10 | |
---|---|---|---|
Problema | Hoața | Status | done |
Runda | hoata2 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bfs()':
main.cpp:107:5: error: 'memset' was not declared in this scope
107 | memset( dis, INF, sizeof( dis ) );
| ^~~~~~
main.cpp:53:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
52 | #include <queue>
+++ |+#include <cstring>
53 |
main.cpp: In function 'bool dijsktra()':
main.cpp:135:5: error: 'memcpy' was not declared in this scope
135 | memcpy(distanta, dis, sizeof( dis ) );
| ^~~~~~
main.cpp:135:5: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:136:5: error: 'memset' was not declared in this scope
136 | memset(dp, INF, sizeof( dp ) );
| ^~~~~~
main.cpp:136:5: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !