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;
^
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:50:9:
REP(k1, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~~
beads.cpp:50: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:53:13:
REP(k2, 0, adj[u].size()) if (k1 != k2) {
~~~~~~~~~~~~~~~~~~~~
beads.cpp:53: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:64:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:64:5: note: in expansion of macro 'REP'
REP(k, 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:72:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:72:5: note: in expansion of macro 'REP'
REP(k, 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:83:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:83:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp:84:34: warning: unused variable 'w' [-Wunused-variable]
int v = adj[u][k].first, w = adj[u][k].second;
^
beads.cpp: In function 'int main()':
beads.cpp:98:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
beads.cpp:100: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);
~~~~~^~~~~~~~~~~~~~~~~~~~~~