Problem segmenttree
User jmuzhen
Submission Time 2025-02-20 09:21:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:43:23: error: cannot convert ‘SegTree<long long int>’ to ‘SegTree<long long int>*’ in initialization
43 | SegTree<int> *root = SegTree<int>(0, n-1, 0, [](int a, int b) { return min(a, b); });
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| SegTree<long long int>