0_0_35671528_12943.cpp: In function 'void dfs(long long int, long long int)':
0_0_35671528_12943.cpp:15:13: error: expected unqualified-id before '[' token
for(auto[to,w]:g[u]){
^
0_0_35671528_12943.cpp:15:13: error: expected ';' before '[' token
0_0_35671528_12943.cpp:15:14: error: 'to' was not declared in this scope
for(auto[to,w]:g[u]){
^
0_0_35671528_12943.cpp:15:17: error: 'w' was not declared in this scope
for(auto[to,w]:g[u]){
^
0_0_35671528_12943.cpp: In lambda function:
0_0_35671528_12943.cpp:15:19: error: expected '{' before ':' token
for(auto[to,w]:g[u]){
^
0_0_35671528_12943.cpp: In function 'void dfs(long long int, long long int)':
0_0_35671528_12943.cpp:15:19: error: expected ';' before ':' token
0_0_35671528_12943.cpp:15:19: error: expected primary-expression before ':' token
0_0_35671528_12943.cpp:15:19: error: expected ')' before ':' token
0_0_35671528_12943.cpp:15:19: error: expected primary-expression before ':' token
0_0_35671528_12943.cpp:27:13: error: expected unqualified-id before '[' token
auto[to,w]=v[i];
^
0_0_35671528_12943.cpp:28:20: error: 'to' was not declared in this scope
f[u][0]+=f[to][0]+w;
^
0_0_35671528_12943.cpp:28:27: error: 'w' was not declared in this scope
f[u][0]+=f[to][0]+w;
^
0_0_35671528_12943.cpp:31:13: error: expected unqualified-id before '[' token
auto[to,w]=v[i];
^
0_0_35671528_12943.cpp:32:39: error: 'to' was not declared in this scope
f[u][1]=max(f[u][1],f[u][0]+f[to][1]-f[to][0]);
^
0_0_35671528_12943.cpp:35:13: error: expected unqualified-id before '[' token
auto[to,w]=v[k-1];
^
0_0_35671528_12943.cpp:36:20: error: 'to' was not declared in this scope
f[u][0]+=f[to][0]+w;
^
0_0_35671528_12943.cpp:36:27: error: 'w' was not declared in this scope
f[u][0]+=f[to][0]+w;
^
0_0_35671528_12943.cpp:39:13: error: expected unqualified-id before '[' token
auto[to,w]=v[i];
^
0_0_35671528_12943.cpp:40:39: error: 'to' was not declared in this scope
f[u][2]=max(f[u][2],f[u][0]+f[to][1]-f[to][0]);
^
0_0_35671528_12943.cpp:43:13: error: expected unqualified-id before '[' token
auto[to,w]=v[k-1];
^
0_0_35671528_12943.cpp:44:20: error: 'to' was not declared in this scope
f[u][0]-=f[to][0]+w;
^
0_0_35671528_12943.cpp:44:27: error: 'w' was not declared in this scope
f[u][0]-=f[to][0]+w;
^
|