Borderou de evaluare (job #2791262)
Utilizator | Data | 30 octombrie 2021 11:59:17 | |
---|---|---|---|
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 insert_element(std::pair<int, int>)':
main.cpp:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
28 | }
| ^
main.cpp: In function 'int get_next_element()':
main.cpp:35:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i = 0; i < q.size(); ++i)
| ~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:96:16: error: 'INT_MAX' was not declared in this scope
96 | d[i] = 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:99:21: error: 'INT_MAX' was not declared in this scope
99 | if (d[i] == INT_MAX) {
| ^~~~~~~
main.cpp:99:21: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !