In file included from /usr/include/c++/10/cassert:44,
from sorting.cpp:5:
sorting.cpp: In function 'void getOps()':
sorting.cpp:59:23: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
59 | assert(ops.size() == n - cntCycles);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:82:24: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
82 | if (ops.size() <= i)
| ~~~~~~~~~~~^~~~
sorting.cpp:84:31: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
84 | while (ops.size() < i)
| ~~~~~~~~~~~^~~
sorting.cpp:99:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
99 | for (int i = 0 ; i < ops.size() ; ++i)
| ~~^~~~~~~~~~~~
sorting.cpp:112:20: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
112 | return ops.size();
| ~~~~~~~~^~