Problem segmenttree
User MS
Submission Time 2023-08-30 23:52:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:8:5: error: ‘memset’ was not declared in this scope
8 | memset(arr,0,sizeof(arr));
| ^~~~~~
segmenttree.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include <iostream>
+++ |+#include <cstring>
2 | using namespace std;
segmenttree.cpp:14:20: error: ‘min_element’ was not declared in this scope
14 | cout<<*min_element(&arr[x],&arr[y+1])<<endl;
| ^~~~~~~~~~~