/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1629 八
语言
C++
递交时间
2023-07-08 00:44:29
评测时间
2023-07-08 00:44:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes