/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int maxMatch(const std::vector<std::vector<bool> >&, int, int)':
/in/foo.cc:20:20: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
   20 |     auto dfs = [&](auto &&self, int i) -> bool
      |                    ^~~~
/in/foo.cc: In lambda function:
/in/foo.cc:28:38: error: expression cannot be used as a function
   28 |             if (match[j] == 0 || self(self, match[j]))
      |                                  ~~~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int maxMatch(const std::vector<std::vector<bool> >&, int, int)':
/in/foo.cc:40:16: error: no match for call to '(maxMatch(const std::vector<std::vector<bool> >&, int, int)::<lambda(int&&, int)>) (maxMatch(const std::vector<std::vector<bool> >&, int, int)::<lambda(int&&, int)>&, int&)'
   40 |         if (dfs(dfs, i))
      |             ~~~^~~~~~~~
/in/foo.cc:20:16: note: candidate: 'maxMatch(const std::vector<std::vector<bool> >&, int, int)::<lambda(int&&, int)>'
   20 |     auto dfs = [&](auto &&self, int i) -> bool
      |                ^
/in/foo.cc:20:16: note:   no known conversion for argument 1 from 'maxMatch(const std::vector<std::vector<bool> >&, int, int)::<lambda(int&&, int)>' to 'int&&'

信息

递交者
类型
递交
题目
P1693 Miku_Nobody
语言
C++
递交时间
2026-11-20 20:47:08
评测时间
2026-11-20 20:47:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes