sorting.cpp: In function 'void init(int*)':
sorting.cpp:22:37: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
22 | Loop(i,0,n) a[i] = s[i], b[s[i]] = i;
| ^
sorting.cpp: In function 'bool can(int)':
sorting.cpp:40:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
40 | int j=i;
| ^
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:67:73: warning: declaration of 'Q' shadows a global declaration [-Wshadow]
67 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:18:22: note: shadowed declaration is here
18 | int *S, *X, *Y, *P, *Q;
| ^
sorting.cpp:67:64: warning: declaration of 'P' shadows a global declaration [-Wshadow]
67 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:18:18: note: shadowed declaration is here
18 | int *S, *X, *Y, *P, *Q;
| ^
sorting.cpp:67:55: warning: declaration of 'Y' shadows a global declaration [-Wshadow]
67 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:18:14: note: shadowed declaration is here
18 | int *S, *X, *Y, *P, *Q;
| ^
sorting.cpp:67:46: warning: declaration of 'X' shadows a global declaration [-Wshadow]
67 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:18:10: note: shadowed declaration is here
18 | int *S, *X, *Y, *P, *Q;
| ^
sorting.cpp:67:30: warning: declaration of 'S' shadows a global declaration [-Wshadow]
67 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^~~
sorting.cpp:18:6: note: shadowed declaration is here
18 | int *S, *X, *Y, *P, *Q;
| ^
sorting.cpp:67:23: warning: declaration of 'N' shadows a global declaration [-Wshadow]
67 | int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
| ~~~~^
sorting.cpp:16:11: note: shadowed declaration is here
16 | const int N = 2e5+10;
| ^
sorting.cpp:71:7: warning: declaration of 'm' shadows a global declaration [-Wshadow]
71 | int m=(l+r)/2;
| ^
sorting.cpp:19:8: note: shadowed declaration is here
19 | int n, m;
| ^