foo.cc: In function 'int main()':
foo.cc:22:17: error: 'reverse' was not declared in this scope
22 | reverse(nums.begin() + 1, nums.end());
| ^~~~~~~
foo.cc:38:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int i = 0; i < nums.size(); i++)
| ~~^~~~~~~~~~~~~
foo.cc:44:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for (int i = start; i < nums.size(); i++)
| ~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务