Borderou de evaluare (job #2947143)
Utilizator | Data | 25 noiembrie 2022 19:19:03 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dijkstra(int)':
main.cpp:35:24: error: 'INT_MAX' was not declared in this scope
35 | dp[i][j] = INT_MAX;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <queue>
+++ |+#include <climits>
3 | #include <vector>
main.cpp: In function 'int main()':
main.cpp:83:15: error: 'INT_MAX' was not declared in this scope
83 | int sol = INT_MAX, poz;
| ^~~~~~~
main.cpp:83:15: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:87:29: error: 'poz' was not declared in this scope
87 | sol = dp[n][i], poz = i;
| ^~~
main.cpp:89:27: error: 'poz' was not declared in this scope
89 | cout << sol << " " << poz;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !