foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:10:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &n, &m, &t, &s);
^
foehn_phenomena.cpp:11: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:18:45: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int l, r, x; scanf("%d %d %d", &l, &r, &x);
^