Borderou de evaluare (job #3189374)
Utilizator | Data | 4 ianuarie 2024 23:08:24 | |
---|---|---|---|
Problema | Taramul Nicaieri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool bfs()':
main.cpp:31:5: error: 'memset' was not declared in this scope
31 | memset(visited, false, sizeof(visited));
| ^~~~~~
main.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include <fstream>
+++ |+#include <cstring>
5 |
main.cpp:42:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for (int i = 0; i < graph[current].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void solve()':
main.cpp:96:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | for (int i = 0; i < graph[N_DEST ].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !