Borderou de evaluare (job #3268718)
Utilizator | Data | 16 ianuarie 2025 19:56:32 | |
---|---|---|---|
Problema | Sate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void BFS(int, int)':
main.cpp:15:3: error: 'memset' was not declared in this scope
15 | memset(dist, -1, sizeof(dist));
| ^~~~~~
main.cpp:6:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
5 | #include <queue>
+++ |+#include <cstring>
6 | #include <string>
main.cpp:23:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i = 0; i<w[curr].size(); i++){
| ~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !