0_0_37784228_10956.cpp: In function 'void solve()': 0_0_37784228_10956.cpp:32:13: error: 'k' was not declared in this scope k = upper_bound(d + 1, d + 1 + l, q[i]) - d; ^