sorting.cpp: In function 'int32_t findSwapPairs(int32_t, int32_t*, int32_t, int32_t*, int32_t*, int32_t*, int32_t*)':
sorting.cpp:21:9: warning: declaration of 'n' shadows a global declaration [-Wshadow]
21 | int n = N;
| ^
sorting.cpp:18:5: note: shadowed declaration is here
18 | int n, m, a[maxn], s1[maxn], s2[maxn];
| ^
sorting.cpp:22:9: warning: declaration of 'm' shadows a global declaration [-Wshadow]
22 | int m = M;
| ^
sorting.cpp:18:8: note: shadowed declaration is here
18 | int n, m, a[maxn], s1[maxn], s2[maxn];
| ^
sorting.cpp:35:23: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
35 | P[R] = a[i];
| ~~~^
sorting.cpp:36:20: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
36 | Q[R] = i;
| ^