
第16用的lower_bound正常通过

仅仅改成了upper_bound,并st-1,按理来说,结果是一样的。
但是却报错
Line 17: Char 13: note: candidate function template not viable: no known conversion from 'std::vector' to 'int' for 2nd argument
17 | [](auto &e, int lower) {
| ^ ~~~~~~~~~
1 error generated.
为什么类型错误呢?求各位大佬解惑