foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:42:5: warning: unused variable 'temp' [-Wunused-variable]
LL temp=0;
^
foehn_phenomena.cpp:57:13: warning: unused variable 'beft' [-Wunused-variable]
LL bef,cur,beft,curt,nw;
^
foehn_phenomena.cpp:57:18: warning: unused variable 'curt' [-Wunused-variable]
LL bef,cur,beft,curt,nw;
^
foehn_phenomena.cpp:57:23: warning: unused variable 'nw' [-Wunused-variable]
LL bef,cur,beft,curt,nw;
^
foehn_phenomena.cpp:41: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,&tt);
^
foehn_phenomena.cpp:44:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^
foehn_phenomena.cpp:59:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&l,&r,&x);
^
foehn_phenomena.cpp:73:14: warning: 'oldl' may be used uninitialized in this function [-Wmaybe-uninitialized]
else t.upd(l,-s*(cur-bef)-oldl);
^