Borderou de evaluare (job #3329932)
| Utilizator | Data | 16 decembrie 2025 15:06:29 | |
|---|---|---|---|
| Problema | Catun | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<int> dijkstra(int, const int&, const std::vector<std::vector<std::pair<int, int> > >&)':
main.cpp:9:34: error: 'INT_MAX' was not declared in this scope
9 | vector<int> distances(n + 1, INT_MAX);
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <vector>
+++ |+#include <climits>
3 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:60:32: error: 'INT_MAX' was not declared in this scope
60 | int min_distance = INT_MAX;
| ^~~~~~~
main.cpp:60:32: 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 !
