Borderou de evaluare (job #3297167)
Utilizator | Data | 21 mai 2025 19:28:53 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bf()':
main.cpp:40:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Nod>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for (int i = 0; i < list[elem.nod].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:55:5: error: 'memset' was not declared in this scope
55 | memset(d, INF, sizeof(d));
| ^~~~~~
main.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include <queue>
+++ |+#include <cstring>
5 | using namespace std;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !