Borderou de evaluare (job #2927745)
Utilizator | Data | 21 octombrie 2022 12:12:45 | |
---|---|---|---|
Problema | Padure | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:57: error: 'INT_MAX' was not declared in this scope
9 | int n, m, pl, pc, cl, cc, padure[1001][1001], costMinim=INT_MAX, vizitat[1001][1001];
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <vector>
+++ |+#include <climits>
3 |
main.cpp: In function 'int BFS(int, int, int, int)':
main.cpp:12:68: error: 'vizitat' was not declared in this scope
12 | if (i <= 0 || i == n+1 || j <= 0 || j == m+1 || d>costMinim || vizitat[i][j]==1)
| ^~~~~~~
main.cpp:13:16: error: 'INT_MAX' was not declared in this scope
13 | return INT_MAX;
| ^~~~~~~
main.cpp:13:16: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:14:5: error: 'vizitat' was not declared in this scope
14 | vizitat[i][j] = 1;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !