foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&n,&q,&s,&t);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foehn_phenomena.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~
foehn_phenomena.cpp:27:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&l,&r,&x);
~~~~~^~~~~~~~~~~~~~~~~~~