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