Problem rangerangequery
User justin271828
Submission Time 2024-12-07 09:26:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rangerangequery.cpp: In constructor ‘node::node(int, int)’:
rangerangequery.cpp:8:25: error: expected ‘{’ before ‘)’ token
8 | s(S), e(E), m((S+E)/2)), Min(1), Max(1234567890) {
| ^
rangerangequery.cpp: In member function ‘int node::findMin(int, int)’:
rangerangequery.cpp:25:38: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
25 | if (start <= s && e <= end) return min;
| ^~~
rangerangequery.cpp: In member function ‘int node::findMax(int, int)’:
rangerangequery.cpp:30:38: error: cannot resolve overloaded function ‘max’ based on conversion to type ‘int’
30 | if (start <= s && e <= end) return max;
| ^~~
rangerangequery.cpp: In function ‘int main()’:
rangerangequery.cpp:38:23: error: expected ‘;’ before ‘for’
38 | root = new node(1, N)
|