lot.cpp: In function 'int main()':
lot.cpp:59:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=1; j<=N-L+1; j++) printf("%d ", ans[pos[B[i]]][j]); printf("\n");
^~~
lot.cpp:59:65: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int j=1; j<=N-L+1; j++) printf("%d ", ans[pos[B[i]]][j]); printf("\n");
^~~~~~
lot.cpp:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &L);
~~~~~^~~~~~~~~~~~~~~~
lot.cpp:21:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<=N; i++) scanf("%d", &A[i]);
~~~~~^~~~~~~~~~~~~
lot.cpp:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &Q);
~~~~~^~~~~~~~~~
lot.cpp:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &B[i]);
~~~~~^~~~~~~~~~~~~