Problem segmenttree
User PlayVoltz
Submission Time 2023-07-06 19:41:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:5:41: error: size ‘-294967296’ of array ‘segmenttree’ is negative
5 | int arr[segmenttree_size], segmenttree[4*segmenttree_size];
| ~^~~~~~~~~~~~~~~~~
segmenttree.cpp: In function ‘int query(int, int, int, int, int)’:
segmenttree.cpp:23:10: error: ‘INT_MAX’ was not declared in this scope
23 | return INT_MAX;
| ^~~~~~~
segmenttree.cpp:2:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
1 | #include <iostream>
+++ |+#include <climits>
2 | using namespace std;