Main.cpp: In function 'int main()':
Main.cpp:31:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
31 | while(j>=0&&A[j]>B[i]) j--;j++;
| ^~~~~
Main.cpp:31:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
31 | while(j>=0&&A[j]>B[i]) j--;j++;
| ^
Main.cpp:12:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | int n;scanf("%i",&n);
| ~~~~~^~~~~~~~~
Main.cpp:13:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | for(int i=1;i<=n;i++) scanf("%i",&a[i]);
| ~~~~~^~~~~~~~~~~~
Main.cpp:14:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | for(int i=1;i<=n;i++) scanf("%i",&b[i]),c[b[i]]=a[i];
| ~~~~~^~~~~~~~~~~~
Main.cpp:15:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | int q;scanf("%i",&q);
| ~~~~~^~~~~~~~~
Main.cpp:16:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | for(int i=1,l,r;i<=q;i++){scanf("%i%i",&l,&r);Qs[i]={l,r};}
| ~~~~~^~~~~~~~~~~~~~