0_0_37604029_17729.cpp: In function 'int func(int*, int)': 0_0_37604029_17729.cpp:33:43: error: 'upper_bound' was not declared in this scope j = upper_bound(s + 1,s + 1 + flag,b[i]) - s; ^