beads.cpp: In function 'int read()':
beads.cpp:8:9: warning: unused variable 'sign' [-Wunused-variable]
int sign = 1;
^~~~
beads.cpp: In function 'void dfs(long long int, long long int, long long int)':
beads.cpp:20:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i, a, b) for(int i = a; i < b; ++i)
beads.cpp:34:9:
REP(i, 0, adj[u].size())
~~~~~~~~~~~~~~~~~~~
beads.cpp:34:5: note: in expansion of macro 'REP'
REP(i, 0, adj[u].size())
^~~
beads.cpp:20:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i, a, b) for(int i = a; i < b; ++i)
beads.cpp:43:9:
REP(i, 0, adj[u].size())
~~~~~~~~~~~~~~~~~~~
beads.cpp:43:5: note: in expansion of macro 'REP'
REP(i, 0, adj[u].size())
^~~
beads.cpp: At global scope:
beads.cpp:66:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
beads.cpp: In function 'int main()':
beads.cpp:69:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("beads.inp", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
beads.cpp:70:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("beads.out", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~