Problem fenwicktree
User Kiameimon
Submission Time 2025-03-09 20:51:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In function ‘int main()’:
fenwicktree.cpp:195:46: error: non-type template parameters of class type only available with ‘-std=c++2a’ or ‘-std=gnu++2a’
195 | LazyPropSegtree<T, U, op, updVal, updLazy> segtree(arr.begin(), arr.end(), make_pair(0ll, 0), 0);
| ^
fenwicktree.cpp:195:46: error: non-type template parameters of class type only available with ‘-std=c++2a’ or ‘-std=gnu++2a’
fenwicktree.cpp:195:46: error: non-type template parameters of class type only available with ‘-std=c++2a’ or ‘-std=gnu++2a’
fenwicktree.cpp:195:100: error: expression list treated as compound expression in initializer [-fpermissive]
195 | LazyPropSegtree<T, U, op, updVal, updLazy> segtree(arr.begin(), arr.end(), make_pair(0ll, 0), 0);
| ^
fenwicktree.cpp:201:12: error: request for member