foehn_phenomena.cpp: In function 'void input()':
foehn_phenomena.cpp:9:47: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'lld* {aka long long int*}' [-Wformat=]
for (int i=0; i<=N; i++) scanf("%d", &A[i]);
~~~~~^
foehn_phenomena.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%lld%lld", &N, &Q, &S, &T);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foehn_phenomena.cpp:9:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i=0; i<=N; i++) scanf("%d", &A[i]);
~~~~~^~~~~~~~~~~~~
foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:27:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%lld", &l, &r, &val);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~