Borderou de evaluare (job #3175928)
Utilizator | Data | 26 noiembrie 2023 15:53:04 | |
---|---|---|---|
Problema | Trilant | 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, std::vector<std::vector<std::pair<int, int> > >&, std::vector<int>&, std::vector<long long int>&)':
main.cpp:14:47: error: 'INT_MAX' was not declared in this scope
14 | costs=vector<long long int>(graph.size(), INT_MAX);
| ^~~~~~~
main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <queue>
+++ |+#include <climits>
4 |
main.cpp:29:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int i=0;i<graph[node].size();i++)
| ~^~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !