beads.cpp: In function 'void dfs(int)':
beads.cpp:32:6: warning: array subscript 2 is above array bounds of 'll [2][200]' {aka 'long long int [2][200]'} [-Warray-bounds]
32 | dp[2][u] = inf;
| ~~~~^
beads.cpp:15:4: note: while referencing 'dp'
15 | ll dp[2][N], w[N][N], par[N];
| ^~
beads.cpp:37:40: warning: array subscript 2 is above array bounds of 'll [2][200]' {aka 'long long int [2][200]'} [-Warray-bounds]
37 | ll mn = min(dp[1][x] + w[x][u], dp[2][x]);
| ~~~~^
beads.cpp:38:23: warning: array subscript 2 is above array bounds of 'll [2][200]' {aka 'long long int [2][200]'} [-Warray-bounds]
38 | dp[2][u] = min(dp[2][u], dp[1][u] - mn + dp[1][x]);
| ~~~~^
beads.cpp:38:8: warning: array subscript 2 is above array bounds of 'll [2][200]' {aka 'long long int [2][200]'} [-Warray-bounds]
38 | dp[2][u] = min(dp[2][u], dp[1][u] - mn + dp[1][x]);
| ~~~~^
beads.cpp:15:4: note: while referencing 'dp'
15 | ll dp[2][N], w[N][N], par[N];
| ^~
beads.cpp:28:44: warning: array subscript 2 is above array bounds of 'll [2][200]' {aka 'long long int [2][200]'} [-Warray-bounds]
28 | dp[1][u] += min(dp[1][x] + w[x][u], dp[2][x]);
| ~~~~^