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: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: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:57:9:
REP(k1, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~~
beads.cpp:57: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:60:13:
REP(k2, 0, adj[u].size()) if (k1 != k2) {
~~~~~~~~~~~~~~~~~~~~
beads.cpp:60: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:74:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:74: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:81:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:81: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:88:9:
REP(k, 0, adj[u].size()) {
~~~~~~~~~~~~~~~~~~~
beads.cpp:88:5: note: in expansion of macro 'REP'
REP(k, 0, adj[u].size()) {
^~~
beads.cpp: In function 'int main()':
beads.cpp:101:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
beads.cpp:103: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);
~~~~~^~~~~~~~~~~~~~~~~~~~~~