foo.cc: In function 'int main()':
foo.cc:14:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
14 | std::sort(ori.begin(), ori.end());
| ^~~~
| qsort
foo.cc:36:9: error: 'memset' was not declared in this scope
36 | memset(visit, 0, sizeof(bool) * (j-i+1));
| ^~~~~~
foo.cc:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <vector>
+++ |+#include <cstring>
4 | using namespace std;
foo.cc:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int k=0;k<nnum.size();k++) {
| ~^~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务