0_0_24932517_12160.cpp: In function 'int main()': 0_0_24932517_12160.cpp:65:62: error: 'upper_bound' was not declared in this scope int d = upper_bound(v[x].begin(),v[x].end(),r)-v[x].begin(); ^