0_0_38659392_32534.cpp: In function 'int main()':
0_0_38659392_32534.cpp:20:17: error: 'v' was not declared in this scope
int sw = 0;[v]) // u和v都没有环,直接加
^
0_0_38659392_32534.cpp: In lambda function:
0_0_38659392_32534.cpp:20:19: error: expected '{' before ')' token
int sw = 0;[v]) // u和v都没有环,直接加
^
0_0_38659392_32534.cpp: In function 'int main()':
0_0_38659392_32534.cpp:20:19: error: expected ';' before ')' token
int sw = 0;[v]) // u和v都没有环,直接加
^
;
0_0_38659392_32534.cpp:25:26: error: no match for 'operator!' (operand type is 'std::vector<int>')
if (!cycle[u] && !cycle
^~~~~~
0_0_38659392_32534.cpp:25:26: note: candidate: 'operator!(bool)' <built-in>
0_0_38659392_32534.cpp:25:26: note: no known conversion for argument 1 from 'std::vector<int>' to 'bool'
0_0_38659392_32534.cpp:28:7: error: expected primary-expression before '}' token
} else {
^
0_0_38659392_32534.cpp:27:57: error: expected ')' before '}' token
fa[u] = v, sw += e.w, cycle[u] = cycle[v] = 1;
^
)
} else {
~
0_0_38659392_32534.cpp:25:12: note: to match this '('
if (!cycle[u] && !cycle
^
0_0_38659392_32534.cpp:28:7: error: expected primary-expression before '}' token
} else {
^
|