0_0_36876546_1411.cpp: In function 'void solve()': 0_0_36876546_1411.cpp:173:53: error: 'mid' was not declared in this scope ans = (shu[idx][l].val - x) / rd * n + shu[idx][mid].id; ^