/in/foo.cc:24:20: error: expected primary-expression before 'auto'
constexpr decltype(auto) dsize = 100010;
^~~~
/in/foo.cc:24:20: error: expected ')' before 'auto'
/in/foo.cc:24:11: error: expected unqualified-id before 'decltype'
constexpr decltype(auto) dsize = 100010;
^~~~~~~~
/in/foo.cc:27:32: error: 'dsize' was not declared in this scope
using graph = array<vector<T>, dsize>;
^~~~~
/in/foo.cc:27:37: error: template argument 2 is invalid
using graph = array<vector<T>, dsize>;
^
/in/foo.cc:29:1: error: 'graph' does not name a type
graph<int> g, rev, death;
^~~~~
/in/foo.cc:30:12: error: 'dsize' was not declared in this scope
array<int, dsize> in_degree, top_order, depth,sum;
^~~~~
/in/foo.cc:30:17: error: template argument 2 is invalid
array<int, dsize> in_degree, top_order, depth,sum;
^
/in/foo.cc:31:18: error: 'dsize' was not declared in this scope
array<array<int, dsize>, 20> fa;
^~~~~
/in/foo.cc:31:23: error: template argument 2 is invalid
array<array<int, dsize>, 20> fa;
^
/in/foo.cc:31:28: error: template argument 1 is invalid
array<array<int, dsize>, 20> fa;
^
/in/foo.cc: In function 'int lca(int, int)':
/in/foo.cc:35:13: error: invalid types 'int[int]' for array subscript
if (depth[u] < depth[v])swap(u, v);
^
/in/foo.cc:35:24: error: invalid types 'int[int]' for array subscript
if (depth[u] < depth[v])swap(u, v);
^
/in/foo.cc:38:14: error: invalid types 'int[int]' for array subscript
if (depth[u] - (1 << i) >= depth[v])
^
/in/foo.cc:38:37: error: invalid types 'int[int]' for array subscript
if (depth[u] - (1 << i) >= depth[v])
^
/in/foo.cc:40:12: error: invalid types 'int[int]' for array subscript
u = fa[u][i];
^
/in/foo.cc:48:11: error: invalid types 'int[int]' for array subscript
if (fa[u][i] != fa[v][i])
^
/in/foo.cc:48:23: error: invalid types 'int[int]' for array subscript
if (fa[u][i] != fa[v][i])
^
/in/foo.cc:50:12: error: invalid types 'int[int]' for array subscript
u = fa[u][i];
^
/in/foo.cc:51:12: error: invalid types 'int[int]' for array subscript
v = fa[v][i];
^
/in/foo.cc:55:13: error: invalid types 'int[int]' for array subscript
return fa[u][0];
^
/in/foo.cc: In function 'void top_sort(int)':
/in/foo.cc:63:19: error: invalid types 'int[int]' for array subscript
if (!in_degree[i])
^
/in/foo.cc:66:4: error: 'rev' was not declared in this scope
rev[i].push_back(0);
^~~
/in/foo.cc:74:20: error: invalid types 'int[int]' for array subscript
top_order[++cnter] = t;
^
/in/foo.cc:75:27: error: 'g' was not declared in this scope
for (const auto &node : g[t])
^
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:88:24: error: 'death' was not declared in this scope
for (const auto &nd : death[s])
^~~~~
/in/foo.cc:91:8: error: invalid types 'int[int]' for array subscript
sum[s] += sum[nd];
^
/in/foo.cc:93:7: error: invalid types 'int[int]' for array subscript
sum[s]++;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:107:4: error: 'g' was not declared in this scope
g[x].push_back(i);
^
/in/foo.cc:108:4: error: 'rev' was not declared in this scope
rev[i].push_back(x);
^~~
/in/foo.cc:109:15: error: invalid types 'int[int]' for array subscript
in_degree[i]++;
^
/in/foo.cc:119:24: error: invalid types 'int[int]' for array subscript
int top = top_order[i];
^
/in/foo.cc:120:11: error: 'rev' was not declared in this scope
int x = rev[top][0];
^~~
/in/foo.cc:126:3: error: 'death' was not declared in this scope
death[x].push_back(top_order[i]);
^~~~~
/in/foo.cc:126:33: error: invalid types 'int[int]' for array subscript
death[x].push_back(top_order[i]);
^
/in/foo.cc:127:12: error: invalid types 'int[int]' for array subscript
depth[top] = depth[x] + 1;
^
/in/foo.cc:127:23: error: invalid types 'int[int]' for array subscript
depth[top] = depth[x] + 1;
^
/in/foo.cc:128:9: error: invalid types 'int[int]' for array subscript
fa[top][0] = x;
^
/in/foo.cc:131:10: error: invalid types 'int[int]' for array subscript
fa[top][j] = fa[fa[top][i - 1]][j - 1];
^
/in/foo.cc:131:26: error: invalid types 'int[int]' for array subscript
fa[top][j] = fa[fa[top][i - 1]][j - 1];
^
/in/foo.cc:137:15: error: request for member 'begin' in 'sum', which is of non-class type 'int'
for_each(sum.begin() + 1, sum.begin() + 1 + n,[](const int &n)
^~~~~
/in/foo.cc:137:32: error: request for member 'begin' in 'sum', which is of non-class type 'int'
for_each(sum.begin() + 1, sum.begin() + 1 + n,[](const int &n)
^~~~~