Borderou de evaluare (job #3155223)
Utilizator | Data | 7 octombrie 2023 18:11:33 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'SegTree::SegTree(int)':
main.cpp:16:18: error: 'INT_MAX' was not declared in this scope
16 | v[i]=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 |
main.cpp: In member function 'int SegTree::query(int, int, int, int, int)':
main.cpp:46:15: error: 'INT_MAX' was not declared in this scope
46 | int x=INT_MAX, y=INT_MAX;
| ^~~~~~~
main.cpp:46:15: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:51:13: error: 'y' was not declared in this scope
51 | y=query(max(mid+1, a), b, 2*node+1, mid+1, right);
| ^
main.cpp:53:23: error: 'y' was not declared in this scope
53 | return min(x, y);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !