0_0_22075881_30867.cpp: In function 'int main()': 0_0_22075881_30867.cpp:36:51: error: 'upper_bound' was not declared in this scope int j=upper_bound(d+1,d+len+1,a[i])-d; ^