运行 ID: 38584

Main.cc: In function ‘int main()’:
Main.cc:26:24: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
         auto dfs = [&](auto&& self, i64 cur, int len = 1, int step = 2) {
                        ^~~~
Main.cc: In lambda function:
Main.cc:36:65: error: expression cannot be used as a function
                 self(self, cur * i * i, len * power[i], step - 1);
                                                                 ^
Main.cc: In function ‘int main()’:
Main.cc:39:19: error: no match for call to ‘(main()::) (main()::&, i64&)’
         dfs(dfs, x);
                   ^
Main.cc:26:71: note: candidate: main()::
         auto dfs = [&](auto&& self, i64 cur, int len = 1, int step = 2) {
                                                                       ^
Main.cc:26:71: note:   no known conversion for argument 1 from ‘main()::’ to ‘int&&’
Main.cc:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &q);
     ~~~~~^~~~~~~~~~
Main.cc:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%lld %lld", &x, &y);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~