sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:29:44: 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]
29 | firstOut = order[id = j];
| ^
sorting.cpp:43:26: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
43 | P[res] = id1;
| ^~~
sorting.cpp:44:26: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
44 | Q[res] = id2;
| ^~~
sorting.cpp:51:35: 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]
51 | firstOut = s[j];
| ^
sorting.cpp:55:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
55 | if (firstOut == -1) return res;
| ^~~
sorting.cpp:57:12: warning: declaration of 'ooo' shadows a previous local [-Wshadow]
57 | ll ooo = 0;
| ^~~
sorting.cpp:11:8: note: shadowed declaration is here
11 | ll ooo = 0;
| ^~~
sorting.cpp:61:30: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
61 | if (ooo == 0) return res;
| ^~~