Borderou de evaluare (job #2967689)
Utilizator | Data | 19 ianuarie 2023 22:59:05 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:13: error: 'INT_MAX' was not declared in this scope
6 | #define INF INT_MAX
| ^~~~~~~
main.cpp:45:19: note: in expansion of macro 'INF'
45 | dmin[i] = INF;
| ^~~
main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <set>
+++ |+#include <climits>
4 |
main.cpp:56:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Arc>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (i = 0; i < cost[vfmin].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp:6:13: error: 'INT_MAX' was not declared in this scope
6 | #define INF INT_MAX
| ^~~~~~~
main.cpp:72:24: note: in expansion of macro 'INF'
72 | if (dmin[i] == INF) fout <<0<<' ';
| ^~~
main.cpp:6:13: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #define INF INT_MAX
| ^~~~~~~
main.cpp:72:24: note: in expansion of macro 'INF'
72 | if (dmin[i] == INF) fout <<0<<' ';
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !