Borderou de evaluare (job #2942650)
Utilizator | Data | 19 noiembrie 2022 22:27:42 | |
---|---|---|---|
Problema | Ubuntzei | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dijkstra(int, int)':
main.cpp:23:5: error: 'memset' was not declared in this scope
23 | memset(viz, 0, sizeof(viz));
| ^~~~~~
main.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include<strings.h>
+++ |+#include <cstring>
5 | using namespace std;
main.cpp:38:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0; i<city.size(); i++)
| ~^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:93:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | for(int i=0; i<city.size(); i++)
| ~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !