Borderou de evaluare (job #2954770)
Utilizator | Data | 15 decembrie 2022 12:02:43 | |
---|---|---|---|
Problema | Spiridusi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int query(int, int)':
main.cpp:49:18: error: 'INT_MAX' was not declared in this scope
49 | int answer = INT_MAX, dist = nivel[x] - nivel[y] + 1, p2 = 0;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <queue>
+++ |+#include <climits>
5 | #pragma GCC optimize ("O3")
main.cpp:50:11: error: 'dist' was not declared in this scope
50 | while(dist != 0){
| ^~~~
main.cpp:52:42: error: 'p2' was not declared in this scope; did you mean 'pw2'?
52 | answer = min(answer, minimum[p2][x]);
| ^~
| pw2
main.cpp:55:9: error: 'p2' was not declared in this scope; did you mean 'pw2'?
55 | p2++;
| ^~
| pw2
main.cpp: In function 'int main()':
main.cpp:98:27: error: 'INT_MAX' was not declared in this scope
98 | minimum[i-1][0] = INT_MAX;
| ^~~~~~~
main.cpp:98:27: 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 !