easy.cpp: In member function 'void segment_tree::update(int, int, int, int, int)':
easy.cpp:19:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = start + end >> 1;
~~~~~~^~~~~
easy.cpp: In member function 'int segment_tree::minValue(int, int, int, int, int)':
easy.cpp:34:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid = start + end >> 1;
~~~~~~^~~~~
easy.cpp: In function 'int main()':
easy.cpp:47:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~~
easy.cpp:50:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d", &arr[i]);
~~~~~^~~~~~~~~~~~~~~~
easy.cpp:56:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~~