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