/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:5: error: 'function' was not declared in this scope
   32 |     function<bool(int)> dfs = [&](int u)->bool{
      |     ^~~~~~~~
/in/foo.cc:5:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
    4 | #include <cstring>
  +++ |+#include <functional>
    5 | using namespace std;
/in/foo.cc:32:14: error: expected primary-expression before 'bool'
   32 |     function<bool(int)> dfs = [&](int u)->bool{
      |              ^~~~
/in/foo.cc:44:46: error: 'dfs' was not declared in this scope; did you mean 'bfs'?
   44 |         for(int i=0;i<M;i++) if(ml[i]==-1 && dfs(i)) match++;
      |                                              ^~~
      |                                              bfs

信息

递交者
类型
递交
题目
P1204 CoVH之柯南开锁
语言
C++
递交时间
2026-10-28 21:19:02
评测时间
2026-10-28 21:19:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes