sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:25:20: warning: declaration of 'order' shadows a previous local [-Wshadow]
25 | vector<ll> order = s;
| ^~~~~
sorting.cpp:12:16: note: shadowed declaration is here
12 | vector<ll> order = s;
| ^~~~~
sorting.cpp:32:40: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
32 | firstOut = order[id = j];
| ^
sorting.cpp:46:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
46 | P[res] = id1;
| ^~~
sorting.cpp:47:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
47 | Q[res] = id2;
| ^~~
sorting.cpp:54:31: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
54 | firstOut = s[j];
| ^
sorting.cpp:58:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
58 | if (firstOut == -1) return res;
| ^~~
sorting.cpp:63:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
63 | return res;
| ^~~