/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void dfs(std::vector<std::vector<int> >&, int)':
foo.cc:12:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |  if (pos == spaces.size()) {
      |      ~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:45:2: error: 'memset' was not declared in this scope
   45 |  memset(line, false, sizeof(line));
      |  ^~~~~~
foo.cc:3:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    2 | #include<vector>
  +++ |+#include <cstring>
    3 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1000 A+B Problem
语言
C++
递交时间
2022-05-30 13:34:44
评测时间
2022-05-30 13:34:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes