beads.cpp: In function 'void DFS(int, int)':
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:27:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:27:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp: In function 'void DP(int)':
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:37:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:37:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp:38:34: warning: unused variable 'w' [-Wunused-variable]
int v = adj[u][k].first, w = adj[u][k].second;
^
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:45:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:45:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp:46:34: warning: unused variable 'w' [-Wunused-variable]
int v = adj[u][k].first, w = adj[u][k].second; if (v == p[u]) continue;
^
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:52:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:52:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp:53:34: warning: unused variable 'w' [-Wunused-variable]
int v = adj[u][k].first, w = adj[u][k].second; if (v == p[u]) continue;
^
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:56:9:
REP(k1, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~~
beads.cpp:56:5: note: in expansion of macro 'REP'
REP(k1, 0, adj[u].size()) {
^~~
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:58:13:
REP(k2, 0, adj[u].size()) if (k1 != k2) {
~~~~~~~~~~~~~~~~~~~~
beads.cpp:58:9: note: in expansion of macro 'REP'
REP(k2, 0, adj[u].size()) if (k1 != k2) {
^~~
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:68:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:68:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp:69:34: warning: unused variable 'w' [-Wunused-variable]
int v = adj[u][k].first, w = adj[u][k].second;
^
beads.cpp:5:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(x, a, b) for (int x = a; x < b; ++x)
beads.cpp:73:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:73:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp: In function 'int main()':
beads.cpp:85:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
beads.cpp:87:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int u, v, w; scanf("%d%d%d", &u, &v, &w);
~~~~~^~~~~~~~~~~~~~~~~~~~~~