198int main(
int argc,
const char *argv[]) {
200 test({1, 2, 3, 4, 5, 6, 7, 8, 9},
202 test({9, 8, 7, 6, 5, 4, 3, 2, 1},
204 test({9, 8, 7, 6, 5, 4, 5, 6}, 4);
205 test({3, 3, 3, 3, 3, 3, 3, 3, 3}, 3);
206 test({3, 3, 3, 3, 7, 3, 3, 3, 3}, 3);
207 test({4, 3, 3, -5, -5, 1, 3, 4, 5},
213 test({470211272, 101027544, 1457850878, 1458777923, 2007237709, 823564440,
214 1115438165, 1784484492, 74243042, 114807987},
218 std::srand(
static_cast<unsigned int>(std::time(
nullptr)));
219 std::vector<int> vals;
220 for (
int i = 8; i < 100; i++) {
223 ((RAND_MAX + 5u) / 20);
225 1 + std::rand() / ((RAND_MAX + 3u) /
229 for (
int i = 0; i < n; i++) {
233 test(vals, windowSize);