0_0_18505215_26105.cpp: In function 'int main()': 0_0_18505215_26105.cpp:107:13: error: 't' was not declared in this scope t = upper_bound(g[l].begin(), g[l].end(), r) - g[l].begin() - 1; ^