lot.cpp: In function 'int main()':
lot.cpp:30:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(it!=V.size()) ans[it][1]++, ans[it][i-L+1]++;
~~^~~~~~~~~~
lot.cpp:38:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(it!=V.size()) ans[it][1+j-i]++, ans[it][j-L+1]++;
~~^~~~~~~~~~
lot.cpp:42:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1; i<V.size(); i++)
~^~~~~~~~~
lot.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &L);
~~~~~^~~~~~~~~~~~~~~~
lot.cpp:18:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) scanf("%d", &A[i]);
~~~~~^~~~~~~~~~~~~
lot.cpp:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &Q);
~~~~~^~~~~~~~~~
lot.cpp:20:47: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=Q; i++) scanf("%d", &query[i]), V.push_back(query[i]);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~