#include "global.hpp" #include #include vector generate(int N, int M) { srand((unsigned)time(0)); auto r = vector(N, 0); for(int n = 0; n < N; n++) r[n] = rand()%M; return r; }