Borderou de evaluare (job #2932585)
Utilizator | Data | 3 noiembrie 2022 10:42:11 | |
---|---|---|---|
Problema | Padure | Status | done |
Runda | Teme Pregatire ACM Unibuc 2013 Semestrul 2 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void fill(int, int, int)':
main.cpp:33:35: error: 'INT_MAX' was not declared in this scope
33 | if (cost[x][y] == INT_MAX) // unvisited
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <queue>
+++ |+#include <climits>
5 | using namespace std;
main.cpp: In function 'void lee()':
main.cpp:47:35: error: 'INT_MAX' was not declared in this scope
47 | if (cost[x][y] == INT_MAX) //nevizitat
| ^~~~~~~
main.cpp:47:35: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp: In function 'int main()':
main.cpp:71:31: error: 'INT_MAX' was not declared in this scope
71 | cost[i].push_back(INT_MAX); // init cost matric with INT_MAX
| ^~~~~~~
main.cpp:71:31: 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 !