foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:11:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d %d %lld %lld %lld", &n, &q, t+0, t+1, a+0);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foehn_phenomena.cpp:13:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%lld", a+i);
| ~~~~~^~~~~~~~~~~~~
foehn_phenomena.cpp:18:24: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | int l, r; ll v; scanf("%d %d %lld", &l, &r, &v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~