0_0_31227398_13734.cpp:7:9: error: an anonymous struct cannot have function members
struct {
^
0_0_31227398_13734.cpp:12:2: error: abstract declarator '<anonymous struct>' used as declaration
};
^
0_0_31227398_13734.cpp:17:8: error: 'Edge' was not declared in this scope
vector<Edge> g[N][2];
^
0_0_31227398_13734.cpp:17:12: error: template argument 1 is invalid
vector<Edge> g[N][2];
^
0_0_31227398_13734.cpp:17:12: error: template argument 2 is invalid
0_0_31227398_13734.cpp:17:21: error: invalid type in declaration before ';' token
vector<Edge> g[N][2];
^
0_0_31227398_13734.cpp: In function 'void init(int)':
0_0_31227398_13734.cpp:22:17: error: request for member 'clear' in 'g[i][0]', which is of non-class type 'int'
g[i][0].clear(); g[i][1].clear();
^
0_0_31227398_13734.cpp:22:34: error: request for member 'clear' in 'g[i][1]', which is of non-class type 'int'
g[i][0].clear(); g[i][1].clear();
^
0_0_31227398_13734.cpp:24:37: error: 'memset' was not declared in this scope
memset(exist, true, sizeof exist);
^
0_0_31227398_13734.cpp: In function 'LL deleteDegreeOne(int)':
0_0_31227398_13734.cpp:31:5: error: 'queue' was not declared in this scope
queue<int> q;
^
0_0_31227398_13734.cpp:31:11: error: expected primary-expression before 'int'
queue<int> q;
^
0_0_31227398_13734.cpp:34:13: error: 'q' was not declared in this scope
q.push(i);
^
0_0_31227398_13734.cpp:38:13: error: 'q' was not declared in this scope
while (!q.empty()) {
^
0_0_31227398_13734.cpp:41:37: error: request for member 'size' in 'g[x][1]', which is of non-class type 'int'
for (int i = 0; i < g[x][1].size(); i++) {
^
0_0_31227398_13734.cpp:42:26: error: invalid types 'int[int]' for array subscript
u = g[x][1][i].v;
^
0_0_31227398_13734.cpp:45:56: error: invalid types 'int[int]' for array subscript
shareProduct = shareProduct * g[x][1][i].w % MOD;
^
0_0_31227398_13734.cpp:49:37: error: request for member 'size' in 'g[u][0]', which is of non-class type 'int'
for (int i = 0; i < g[u][0].size(); i++) {
^
0_0_31227398_13734.cpp:50:30: error: invalid types 'int[int]' for array subscript
int v = g[u][0][i].v;
^
0_0_31227398_13734.cpp: In function 'LL dfs(int, int, int)':
0_0_31227398_13734.cpp:65:33: error: request for member 'size' in 'g[u][p]', which is of non-class type 'int'
for (int i = 0; i < g[u][p].size(); i++) {
^
0_0_31227398_13734.cpp:66:26: error: invalid types 'int[int]' for array subscript
int v = g[u][p][i].v;
^
0_0_31227398_13734.cpp:68:59: error: invalid types 'int[int]' for array subscript
return p == 0 ? dfs(cur, v, p ^ 1) : g[u][p][i].w * dfs(cur, v, p ^ 1) % MOD;
^
0_0_31227398_13734.cpp: In function 'void solve()':
0_0_31227398_13734.cpp:82:21: error: request for member 'push_back' in 'g[i][0]', which is of non-class type 'int'
g[i][0].push_back(Edge(v, w % MOD));
^
0_0_31227398_13734.cpp:82:46: error: 'Edge' was not declared in this scope
g[i][0].push_back(Edge(v, w % MOD));
^
0_0_31227398_13734.cpp:83:21: error: request for member 'push_back' in 'g[v][1]', which is of non-class type 'int'
g[v][1].push_back(Edge(i, w % MOD));
^
0_0_31227398_13734.cpp:91:41: error: request for member 'size' in 'g[i][1]', which is of non-class type 'int'
for (int j = 0; j < g[i][1].size(); j++) {
^
0_0_31227398_13734.cpp:92:34: error: invalid types 'int[int]' for array subscript
int v = g[i][1][j].v; LL w = g[i][1][j].w;
^
0_0_31227398_13734.cpp:92:55: error: invalid types 'int[int]' for array subscript
int v = g[i][1][j].v; LL w = g[i][1][j].w;
^
|