/in/foo.cc: In function 'void solve()':
/in/foo.cc:11:16: error: missing template arguments before 'memo'
11 | vector memo (m, vector<int>(m + 1, -1));
| ^~~~
/in/foo.cc:12:24: error: expected identifier before 'this'
12 | auto dfs = [&](this auto&& dfs, int i, int cnt1, bool is_limit) -> int {
| ^~~~
/in/foo.cc:12:24: error: expected ',' or '...' before 'this'
/in/foo.cc: In lambda function:
/in/foo.cc:13:17: error: 'i' was not declared in this scope
13 | if (i == m) {return cnt1;}
| ^
/in/foo.cc:13:33: error: 'cnt1' was not declared in this scope
13 | if (i == m) {return cnt1;}
| ^~~~
/in/foo.cc:14:18: error: 'is_limit' was not declared in this scope
14 | if (!is_limit && memo[i][cnt1] >= 0) {return memo[i][cnt1];}
| ^~~~~~~~
/in/foo.cc:14:30: error: 'memo' was not declared in this scope
14 | if (!is_limit && memo[i][cnt1] >= 0) {return memo[i][cnt1];}
| ^~~~
/in/foo.cc:14:35: error: 'i' was not declared in this scope
14 | if (!is_limit && memo[i][cnt1] >= 0) {return memo[i][cnt1];}
| ^
/in/foo.cc:14:38: error: 'cnt1' was not declared in this scope
14 | if (!is_limit && memo[i][cnt1] >= 0) {return memo[i][cnt1];}
| ^~~~
/in/foo.cc:16:22: error: 'is_limit' was not declared in this scope
16 | int up = is_limit ? s[i] - '0' : 9;
| ^~~~~~~~
/in/foo.cc:16:35: error: 'i' was not declared in this scope
16 | int up = is_limit ? s[i] - '0' : 9;
| ^
/in/foo.cc:18:24: error: use of 'dfs' before deduction of 'auto'
18 | res += dfs(memo, i + 1, cnt1 + (d == x), is_limit && d == up);
| ^~~
/in/foo.cc:18:28: error: 'memo' was not declared in this scope
18 | res += dfs(memo, i + 1, cnt1 + (d == x), is_limit && d == up);
| ^~~~
/in/foo.cc:18:41: error: 'cnt1' was not declared in this scope
18 | res += dfs(memo, i + 1, cnt1 + (d == x), is_limit && d == up);
| ^~~~
/in/foo.cc:20:29: error: 'memo' was not declared in this scope
20 | if (!is_limit) {memo[i][cnt1] = res;}
| ^~~~
/in/foo.cc:20:37: error: 'cnt1' was not declared in this scope
20 | if (!is_limit) {memo[i][cnt1] = res;}
| ^~~~
/in/foo.cc: In function 'void solve()':
/in/foo.cc:22:20: error: no match for call to '(solve()::<lambda(int)>) (int, int, bool)'
22 | cout << dfs(0, 0, true);
| ~~~^~~~~~~~~~~~
/in/foo.cc:12:20: note: candidate: 'solve()::<lambda(int)>'
12 | auto dfs = [&](this auto&& dfs, int i, int cnt1, bool is_limit) -> int {
| ^
/in/foo.cc:12:20: note: candidate expects 1 argument, 3 provided
/in/foo.cc: In function 'int main()':
/in/foo.cc:26:5: error: 'slove' was not declared in this scope; did you mean 'solve'?
26 | slove();
| ^~~~~
| solve