/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:24: error: use of 'auto' in lambda parameter declaration only available with '-std=c++14' or '-std=gnu++14'
   17 |         auto dfs = [&](auto&& dfs,ull step) -> void{
      |                        ^~~~
/in/foo.cc: In lambda function:
/in/foo.cc:32:36: error: expression cannot be used as a function
   32 |                                 dfs(dfs,step + 1);
      |                                 ~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:41:12: error: no match for call to '(main()::<lambda(int&&, ull)>) (main()::<lambda(int&&, ull)>&, int)'
   41 |         dfs(dfs,0);
      |         ~~~^~~~~~~
/in/foo.cc:17:20: note: candidate: 'main()::<lambda(int&&, ull)>'
   17 |         auto dfs = [&](auto&& dfs,ull step) -> void{
      |                    ^
/in/foo.cc:17:20: note:   no known conversion for argument 1 from 'main()::<lambda(int&&, ull)>' to 'int&&'

信息

递交者
类型
递交
题目
P1092 全排列
语言
C++
递交时间
2025-07-04 23:37:07
评测时间
2025-07-04 23:37:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes