Problem | fenwicktree |
---|---|
User | Kiameimon |
Submission Time | 2025-03-09 21:02:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘int main()’:
fenwicktree.cpp:196:46: error: non-type template parameters of class type only available with ‘-std=c++2a’ or ‘-std=gnu++2a’
196 | LazyPropSegtree<T, U, op, updVal, updLazy> segtree(arr, id, id2);
| ^
fenwicktree.cpp:196:46: error: non-type template parameters of class type only available with ‘-std=c++2a’ or ‘-std=gnu++2a’
fenwicktree.cpp:196:46: error: non-type template parameters of class type only available with ‘-std=c++2a’ or ‘-std=gnu++2a’
fenwicktree.cpp:196:68: error: expression list treated as compound expression in initializer [-fpermissive]
196 | LazyPropSegtree<T, U, op, updVal, updLazy> segtree(arr, id, id2);
| ^
fenwicktree.cpp:202:12: error: request for member ‘Update’ in ‘segtree’, which is of non-class type ‘int’
202 | segtree.Update(l, r+1, v);<