foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:17:39: 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:18:50: 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("%lld", a + i);
^
foehn_phenomena.cpp:22:48: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int s, e; ll x; scanf("%d%d%lld", &s, &e, &x);
^