Super-pirminiai skaičiai

Taškai: 0

Compile: FAIL

super.cpp: In function ‘void solve()’: super.cpp:33:20: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14 auto dfs = [&](auto dfs, int x) -> void{ ^ super.cpp: In lambda function: super.cpp:38:38: error: ‘dfs’ cannot be used as a function dfs(dfs, 10LL * x + i); ^ super.cpp: In function ‘void solve()’: super.cpp:41:15: error: no match for call to ‘(solve()::<lambda(int, long long int)>) (solve()::<lambda(int, long long int)>&, int)’ dfs(dfs, 2); ^ super.cpp:33:40: note: candidate: solve()::<lambda(int, long long int)> auto dfs = [&](auto dfs, int x) -> void{ ^ super.cpp:33:40: note: no known conversion for argument 1 from ‘solve()::<lambda(int, long long int)>’ to ‘int’ super.cpp:42:15: error: no match for call to ‘(solve()::<lambda(int, long long int)>) (solve()::<lambda(int, long long int)>&, int)’ dfs(dfs, 3); ^ super.cpp:33:40: note: candidate: solve()::<lambda(int, long long int)> auto dfs = [&](auto dfs, int x) -> void{ ^ super.cpp:33:40: note: no known conversion for argument 1 from ‘solve()::<lambda(int, long long int)>’ to ‘int’ super.cpp:43:15: error: no match for call to ‘(solve()::<lambda(int, long long int)>) (solve()::<lambda(int, long long int)>&, int)’ dfs(dfs, 5); ^ super.cpp:33:40: note: candidate: solve()::<lambda(int, long long int)> auto dfs = [&](auto dfs, int x) -> void{ ^ super.cpp:33:40: note: no known conversion for argument 1 from ‘solve()::<lambda(int, long long int)>’ to ‘int’ super.cpp:44:15: error: no match for call to ‘(solve()::<lambda(int, long long int)>) (solve()::<lambda(int, long long int)>&, int)’ dfs(dfs, 7); ^ super.cpp:33:40: note: candidate: solve()::<lambda(int, long long int)> auto dfs = [&](auto dfs, int x) -> void{ ^ super.cpp:33:40: note: no known conversion for argument 1 from ‘solve()::<lambda(int, long long int)>’ to ‘int’

nr.resulttimemessage