Borderou de evaluare (job #3180228)
Utilizator | Data | 4 decembrie 2023 21:03:10 | |
---|---|---|---|
Problema | Dragoni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:41:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for (int i=0; i<adj[nod].size(); i++) {
| ~^~~~~~~~~~~~~~~~
main.cpp:58:64: error: 'INT_MAX' was not declared in this scope
58 | vector<vector<int>> distante(n + 1, vector<int>(n + 1, INT_MAX));
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <queue>
+++ |+#include <climits>
5 |
main.cpp:68:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | for (int i=0; i<adj[nod].size(); i++) {
| ~^~~~~~~~~~~~~~~~
main.cpp:62:17: warning: unused variable 'distanta' [-Wunused-variable]
62 | int distanta = coada.top().first;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !