0_0_24925208_21039.cpp: In function 'int main()':
0_0_24925208_21039.cpp:42:64: error: 'upper_bound' was not declared in this scope
upper_bound(p[i].begin(), p[i].end(), r) - p[i].begin();
^
0_0_24925208_21039.cpp:52:63: error: 'upper_bound' was not declared in this scope
high = upper_bound(p[d].begin(), p[d].end(), r) - p[d].begin();
^
|