#include std::vector solve(int N, int Q, std::vector a, std::vector l, std::vector r) { std::vector ans(Q, 0); return ans; }