运行 ID: 39232

Main.cc: In function ‘int main()’:
Main.cc:76:26: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
         auto solve = [&](auto&& self, int steps) {
                          ^~~~
Main.cc: In lambda function:
Main.cc:85:41: error: expression cannot be used as a function
                     self(self, steps - 1);
                                         ^
Main.cc: In function ‘int main()’:
Main.cc:91:24: error: no match for call to ‘(main()::) (main()::&, int)’
         solve(solve, 15);
                        ^
Main.cc:76:48: note: candidate: main()::
         auto solve = [&](auto&& self, int steps) {
                                                ^
Main.cc:76:48: note:   no known conversion for argument 1 from ‘main()::’ to ‘int&&’