toxic.cpp: In function 'void determine_type(int)':
toxic.cpp:32:38: error: no matching function for call to 'random_shuffle(__gnu_cxx::__normal_iterator<int*, std::vector<int> >, std::mt19937&)'
32 | random_shuffle(ord.begin() + i, rng);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from toxic.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:4585:5: note: candidate: 'template<class _RAIter> void std::random_shuffle(_RAIter, _RAIter)'
4585 | random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_algo.h:4585:5: note: template argument deduction/substitution failed:
toxic.cpp:32:38: note: deduced conflicting types for parameter '_RAIter' ('__gnu_cxx::__normal_iterator<int*, std::vector<int> >' and 'std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>')
32 | random_shuffle(ord.begin() + i, rng);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from toxic.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:4620:5: note: candidate: 'template<class _RAIter, class _Generator> void std::random_shuffle(_RAIter, _RAIter, _Generator&&)'
4620 | random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_algo.h:4620:5: note: template argument deduction/substitution failed:
toxic.cpp:32:38: note: deduced conflicting types for parameter '_RAIter' ('__gnu_cxx::__normal_iterator<int*, std::vector<int> >' and 'std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>')
32 | random_shuffle(ord.begin() + i, rng);
| ^
toxic.cpp:55:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for (int k = j - i; k < qry.size(); k++)
| ~~^~~~~~~~~~~~
toxic.cpp:92:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | for (int k = mid - l; k < qry.size(); k++)
| ~~^~~~~~~~~~~~