supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:26:24: error: 'cite' was not declared in this scope
26 | int n = p.size(); [cite: 62]
| ^~~~
supertrees.cpp:26:28: error: expected ',' before ':' token
26 | int n = p.size(); [cite: 62]
| ^
| ,
supertrees.cpp:26:28: error: expected identifier before ':' token
supertrees.cpp: In lambda function:
supertrees.cpp:27:5: error: expected '{' before 'vector'
27 | vector<vector<int>> b(n, vector<int>(n, 0)); [cite: 28, 29]
| ^~~~~~
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:26:33: error: expected ';' before 'vector'
26 | int n = p.size(); [cite: 62]
| ^
| ;
27 | vector<vector<int>> b(n, vector<int>(n, 0)); [cite: 28, 29]
| ~~~~~~
supertrees.cpp:27:55: error: expected ',' before ':' token
27 | vector<vector<int>> b(n, vector<int>(n, 0)); [cite: 28, 29]
| ^
| ,
supertrees.cpp:27:55: error: expected identifier before ':' token
supertrees.cpp:27:59: error: expected ']' before ',' token
27 | vector<vector<int>> b(n, vector<int>(n, 0)); [cite: 28, 29]
| ^
| ]
supertrees.cpp: In lambda function:
supertrees.cpp:27:59: error: expected '{' before ',' token
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:27:63: error: expected ';' before ']' token
27 | vector<vector<int>> b(n, vector<int>(n, 0)); [cite: 28, 29]
| ^
| ;
supertrees.cpp:33:46: error: expected ',' before ':' token
33 | if (p[i][j] == 3) return 0; [cite: 17, 59]
| ^
| ,
supertrees.cpp:33:46: error: expected identifier before ':' token
supertrees.cpp:33:50: error: expected ']' before ',' token
33 | if (p[i][j] == 3) return 0; [cite: 17, 59]
| ^
| ]
supertrees.cpp: In lambda function:
supertrees.cpp:33:50: error: expected '{' before ',' token
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:33:54: error: expected ';' before ']' token
33 | if (p[i][j] == 3) return 0; [cite: 17, 59]
| ^
| ;
supertrees.cpp:34:56: error: expected ',' before ':' token
34 | if (p[i][j] > 0) dsu_all.unite(i, j); [cite: 17]
| ^
| ,
supertrees.cpp:34:56: error: expected identifier before ':' token
supertrees.cpp: In lambda function:
supertrees.cpp:35:13: error: expected '{' before 'if'
35 | if (p[i][j] == 1) dsu_line.unite(i, j); [cite: 67, 68]
| ^~
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:34:61: error: expected ';' before 'if'
34 | if (p[i][j] > 0) dsu_all.unite(i, j); [cite: 17]
| ^
| ;
35 | if (p[i][j] == 1) dsu_line.unite(i, j); [cite: 67, 68]
| ~~
supertrees.cpp:35:58: error: expected ',' before ':' token
35 | if (p[i][j] == 1) dsu_line.unite(i, j); [cite: 67, 68]
| ^
| ,
supertrees.cpp:35:58: error: expected identifier before ':' token
supertrees.cpp:35:62: error: expected ']' before ',' token
35 | if (p[i][j] == 1) dsu_line.unite(i, j); [cite: 67, 68]
| ^
| ]
supertrees.cpp: In lambda function:
supertrees.cpp:35:62: error: expected '{' before ',' token
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:35:66: error: expected ';' before ']' token
35 | if (p[i][j] == 1) dsu_line.unite(i, j); [cite: 67, 68]
| ^
| ;
supertrees.cpp:41:13: error: 'dsu_line' was not declared in this scope
41 | if (dsu_line.parent[i] != i) {
| ^~~~~~~~
supertrees.cpp:42:13: error: 'b' was not declared in this scope
42 | b[i][dsu_line.parent[i]] = b[dsu_line.parent[i]][i] = 1; [cite: 29, 32]
| ^
supertrees.cpp:42:75: error: expected ',' before ':' token
42 | b[i][dsu_line.parent[i]] = b[dsu_line.parent[i]][i] = 1; [cite: 29, 32]
| ^
| ,
supertrees.cpp:42:75: error: expected identifier before ':' token
supertrees.cpp:42:79: error: expected ']' before ',' token
42 | b[i][dsu_line.parent[i]] = b[dsu_line.parent[i]][i] = 1; [cite: 29, 32]
| ^
| ]
supertrees.cpp: In lambda function:
supertrees.cpp:42:79: error: expected '{' before ',' token
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:42:83: error: expected ';' before ']' token
42 | b[i][dsu_line.parent[i]] = b[dsu_line.parent[i]][i] = 1; [cite: 29, 32]
| ^
| ;
supertrees.cpp:49:17: error: 'dsu_all' was not declared in this scope
49 | if (dsu_all.find(i) == dsu_all.find(j)) {
| ^~~~~~~
supertrees.cpp:50:50: error: expected ',' before ':' token
50 | if (p[i][j] == 0) return 0; [cite: 17]
| ^
| ,
supertrees.cpp:50:50: error: expected identifier before ':' token
supertrees.cpp: In lambda function:
supertrees.cpp:51:13: error: expected '{' before '}' token
51 | } else {
| ^
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:50:55: error: expected ';' before '}' token
50 | if (p[i][j] == 0) return 0; [cite: 17]
| ^
| ;
51 | } else {
| ~
supertrees.cpp:52:49: error: expected ',' before ':' token
52 | if (p[i][j] > 0) return 0; [cite: 17]
| ^
| ,
supertrees.cpp:52:49: error: expected identifier before ':' token
supertrees.cpp: In lambda function:
supertrees.cpp:53:13: error: expected '{' before '}' token
53 | }
| ^
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:52:54: error: expected ';' before '}' token
52 | if (p[i][j] > 0) return 0; [cite: 17]
| ^
| ;
53 | }
| ~
supertrees.cpp:60:13: error: 'dsu_line' was not declared in this scope
60 | if (dsu_line.find(i) == i) {
| ^~~~~~~~
supertrees.cpp:61:24: error: 'dsu_all' was not declared in this scope
61 | components[dsu_all.find(i)].push_back(i);
| ^~~~~~~
supertrees.cpp:72:13: error: 'b' was not declared in this scope
72 | b[u][v] = b[v][u] = 1; [cite: 29, 32]
| ^
supertrees.cpp:72:41: error: expected ',' before ':' token
72 | b[u][v] = b[v][u] = 1; [cite: 29, 32]
| ^
| ,
supertrees.cpp:72:41: error: expected identifier before ':' token
supertrees.cpp:72:45: error: expected ']' before ',' token
72 | b[u][v] = b[v][u] = 1; [cite: 29, 32]
| ^
| ]
supertrees.cpp: In lambda function:
supertrees.cpp:72:45: error: expected '{' before ',' token
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:72:49: error: expected ';' before ']' token
72 | b[u][v] = b[v][u] = 1; [cite: 29, 32]
| ^
| ;
supertrees.cpp:76:11: error: 'b' was not declared in this scope
76 | build(b); [cite: 23, 27, 28]
| ^
supertrees.cpp:76:20: error: expected ',' before ':' token
76 | build(b); [cite: 23, 27, 28]
| ^
| ,
supertrees.cpp:76:20: error: expected identifier before ':' token
supertrees.cpp:76:24: error: expected ']' before ',' token
76 | build(b); [cite: 23, 27, 28]
| ^
| ]
supertrees.cpp: In lambda function:
supertrees.cpp:76:24: error: expected '{' before ',' token
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:76:32: error: expected ';' before ']' token
76 | build(b); [cite: 23, 27, 28]
| ^
| ;
supertrees.cpp:77:20: error: expected ',' before ':' token
77 | return 1; [cite: 24, 55]
| ^
| ,
supertrees.cpp:77:20: error: expected identifier before ':' token
supertrees.cpp:77:24: error: expected ']' before ',' token
77 | return 1; [cite: 24, 55]
| ^
| ]
supertrees.cpp: In lambda function:
supertrees.cpp:77:24: error: expected '{' before ',' token
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:77:28: error: expected ';' before ']' token
77 | return 1; [cite: 24, 55]
| ^
| ;
supertrees.cpp:78:1: warning: control reaches end of non-void function [-Wreturn-type]
78 | }
| ^