Problem segmenttree2
User Kiameimon
Submission Time 2025-04-01 21:04:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp: In function ‘int main()’:
segmenttree2.cpp:153:2: error: ‘ios_base’ has not been declared
153 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
segmenttree2.cpp:154:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
154 | cin.tie(0);
| ^~~
| std::cin
In file included from segmenttree2.cpp:150:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
segmenttree2.cpp:172:65: error: non-type template parameters of class type only available with ‘-std=c++2a’ or ‘-std=gnu++2a’
172 | DynamicSegmentTree<ll, ll, sum_op, update_value, update_lazy> *tree = new DynamicSegmentTree<ll, ll, sum_op, update_value, update_lazy>(1, N, 0, 0);
| ^
segmenttree2.cpp:172:65: error: non-type template parameters of clas