0_0_17371926_3478.cpp: In function 'int main()': 0_0_17371926_3478.cpp:20:57: error: 'upper_bound' was not declared in this scope int pos = upper_bound(ans, ans + cnt, res[i]) - ans; ^