foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:80:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
80 | scanf("%d %d %lld",&ll,&rr,&val);
| ~^ ~~~
| | |
| int* long long int*
| %lld
foehn_phenomena.cpp:80:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
80 | scanf("%d %d %lld",&ll,&rr,&val);
| ~^ ~~~
| | |
| int* long long int*
| %lld
foehn_phenomena.cpp: In function 'A sol(int, int, int)':
foehn_phenomena.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type]
71 | }
| ^
foehn_phenomena.cpp: In function 'int main()':
foehn_phenomena.cpp:75:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
75 | scanf("%d %d %lld %lld",&n,&q,&s,&tt);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foehn_phenomena.cpp:77:27: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
77 | for(i=1;i<=n;i++)scanf("%lld",&a[i]);
| ~~~~~^~~~~~~~~~~~~~
foehn_phenomena.cpp:80:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
80 | scanf("%d %d %lld",&ll,&rr,&val);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~