sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:20: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]
20 | firstOut = order[id = j];
| ^
sorting.cpp:34:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
34 | P[res] = id1;
| ^~~
sorting.cpp:35:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
35 | Q[res] = id2;
| ^~~
sorting.cpp:42: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]
42 | firstOut = s[j];
| ^
sorting.cpp:46:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
46 | if (firstOut == -1) return res;
| ^~~
sorting.cpp:51:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
51 | return res;
| ^~~