easy.cpp: In function 'int main()':
easy.cpp:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d %d", &N, &Q);
~~~~~^~~~~~~~~~~~~~~~~~
easy.cpp:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d", &arr[i]);
~~~~~^~~~~~~~~~~~~~~~
easy.cpp:32:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d %d", &L, &R);
~~~~~^~~~~~~~~~~~~~~~~~