/in/foo.cc: In function 'void skt::dfs1(int, int)':
/in/foo.cc:43:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < adj[u].size();i ++ ) {
~~^~~~~~~~~~~~~~~
/in/foo.cc:44:18: error: expected unqualified-id before '[' token
auto [v, w] = adj[u][i];
^
/in/foo.cc:45:16: error: 'v' was not declared in this scope
if(v == _f) continue;
^
/in/foo.cc:46:18: error: 'v' was not declared in this scope
dfs1(v, u);
^
/in/foo.cc:47:25: error: 'w' was not declared in this scope
if(dp1[v] + w > dp1[u]) {
^
/in/foo.cc: In function 'void skt::dfs2(int, int)':
/in/foo.cc:62:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < adj[u].size();i ++ ) {
~~^~~~~~~~~~~~~~~
/in/foo.cc:63:18: error: expected unqualified-id before '[' token
auto [v, w] = adj[u][i];
^
/in/foo.cc:64:16: error: 'v' was not declared in this scope
if(v == _f) continue;
^
/in/foo.cc:65:20: error: 'v' was not declared in this scope
if(dp1[v] + w == dp1[u]) {
^
/in/foo.cc:65:25: error: 'w' was not declared in this scope
if(dp1[v] + w == dp1[u]) {
^
/in/foo.cc:70:18: error: 'v' was not declared in this scope
dfs2(v, u);
^
/in/foo.cc: In function 'void skt::work()':
/in/foo.cc:118:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < adj[t1].size();i ++ ) {
~~^~~~~~~~~~~~~~~~
/in/foo.cc:119:30: error: expected unqualified-id before '[' token
auto [v, w] = adj[t1][i];
^
/in/foo.cc:120:32: error: 'v' was not declared in this scope
if(!st[v] && dp1[v] + w == dp1[t1]) {
^
/in/foo.cc:120:47: error: 'w' was not declared in this scope
if(!st[v] && dp1[v] + w == dp1[t1]) {
^
/in/foo.cc:132:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < adj[t1].size();i ++ ) {
~~^~~~~~~~~~~~~~~~
/in/foo.cc:133:30: error: expected unqualified-id before '[' token
auto [v, w] = adj[t1][i];
^
/in/foo.cc:134:32: error: 'v' was not declared in this scope
if(!st[v]) {
^
/in/foo.cc:135:60: error: 'w' was not declared in this scope
maxv = std::max(maxv, dp1[v] + w);
^
/in/foo.cc:146:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < adj[t2].size();i ++ ) {
~~^~~~~~~~~~~~~~~~
/in/foo.cc:147:30: error: expected unqualified-id before '[' token
auto [v, w] = adj[t2][i];
^
/in/foo.cc:148:32: error: 'v' was not declared in this scope
if(!st[v] && dp1[v] + w == dp1[t2]) {
^
/in/foo.cc:148:47: error: 'w' was not declared in this scope
if(!st[v] && dp1[v] + w == dp1[t2]) {
^
/in/foo.cc:159:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < adj[t2].size();i ++ ) {
~~^~~~~~~~~~~~~~~~
/in/foo.cc:160:30: error: expected unqualified-id before '[' token
auto [v, w] = adj[t2][i];
^
/in/foo.cc:161:32: error: 'v' was not declared in this scope
if(!st[v]) {
^
/in/foo.cc:162:60: error: 'w' was not declared in this scope
maxv = std::max(maxv, dp1[v] + w);
^