Main.cpp: In function 'int main()':
Main.cpp:34:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
34 | printf("%d\n",lst[it] / (pre[it] - pre[it -1]) );
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
Main.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf(" %d",&N);
| ~~~~~^~~~~~~~~~
Main.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf(" %d",&lst[i]);
| ~~~~~^~~~~~~~~~~~~~~
Main.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf(" %d",&Q);
| ~~~~~^~~~~~~~~~
Main.cpp:30:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf(" %lld",&X);
| ~~~~~^~~~~~~~~~~~